Thursday, January 30, 2014

Disable SSH host checking.

when access ssh to any host, it will ask us to accept the certificate,

$ ssh root@
The authenticity of host ' (' can't be established.
DSA key fingerprint is 35:93:23:a6:84:6f:26:c2:53:47:84:f7:a3:00:40:8e.
Are you sure you want to continue connecting (yes/no)?

To avoid the message, create 'config' file in ~/.ssh and add content as below

$ cat ~/.ssh/config
Host 10.*.*.*
   StrictHostKeyChecking no

then, next time you ssh it ask only the password

$ ssh admin@
Warning: Permanently added '' (DSA) to the list of known hosts.
admin@'s password:

No comments:

Post a Comment