[TriLUG] need to automatically accept new ssh keys
Michael Tharp
gxti at partiallystapled.com
Wed Oct 10 22:33:45 EDT 2007
Greg Brown wrote:
> had to change /etc/ssh/ssh.conf which is what I didn't want to do, but I can
> live with this for a short time on the lab machine. I was hoping the
> command line switch would do the trick.
>
> On 10/10/07, Greg Brown <gwbrown1 at gmail.com> wrote:
>> I'm in a lab, it is secure, and I'm calling ssh from an expect script and
>> can't input data each and every time I connect to something new (any one of
>> a gigillion routers).
>>
>> I thought ssh -a -l would do the rick but it doesn't seem to work.. any
>> ideas?
>>
>> Greg
>>
This should do the trick:
ssh -o 'StrictHostKeyChecking no'
-- m. tharp
More information about the TriLUG
mailing list