UnixServerAdmin

Server Administration & Management

SSH Public key challenge

Sometimes, We get the following prompt, when we try to connect a server using SSH. We type “yes”, but is there a way to avoid this.

The authenticity of host ‘111.222.333.444 (111.222.333.444)’ can’t be established.
RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.
Are you sure you want to continue connecting (yes/no)?

Use the -o option,

ssh -o “StrictHostKeyChecking no” user@host

# vim /etc/ssh/ssh_config

Host *    –> line no 20, Uncomment the line
StrictHostKeyChecking no     –> line no 31, Uncomment the line

# /etc/init.d/sshd restart

August 10, 2013 Posted by | SSH | | Leave a comment