| SSH: Stop Asking to Add New Hosts |
|
|
|
| Tech Notes - Linux |
| Written by Rick |
| Tuesday, 29 December 2009 11:33 |
|
An annoying little thing. When connecting via SSH to another machine for the first time SSH always prompts; --- Typing "yes' each time can be pain in the butt. There is a way to change that behavior but, some believe it exposes you to a Man-in-the-middle attack.You've been advised! I've changed settings in most of my /etc/ssh/ssh_config files to stop the machine from begging for a "yes" response, to just automatically adding the new host to the known_hosts file. I did that by changing the parameter value of StrictHostKeyChecking to "no" and restarting the SSH service. Note: This does not stop SSH from checking that the host exists in the known_hosts file. It simply adds new hosts to the file without prompting. |




