Howto: ssh automatically add new hosts to the list of known hosts

When managing many hosts, answering 100s of "yes" can make us crazy. In a trusted environment, let ssh automatically add the new hosts to the list of known hosts and free us from typing "yes"es. How to enable it?

asked Jan 21, 2013 by forum (2,150 points)

1 Answer

 
Best answer

Method 1. Passing option to ssh

ssh -o StrictHostKeyChecking=no username@host

Method 2. Configuring ~/.ssh/config

To automatically add hosts starting with 10.*

Host 10.* 
   StrictHostKeyChecking no
answered Jan 21, 2013 by anonymous
selected Jan 22, 2013 by SA

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...