上一篇: 在 linux 的命令行输出进度条
关闭 ssh 连接时提示的yes和no
[ 2010/09/27 16:00 | by selboo ]
关闭ssh连接时的yes|no提示:配置后直接提示输入密码
设置前
[root@74-82-173-217 home]# ssh selboo.com.cn
The authenticity of host 'selboo.com.cn (74.82.173.217)' can't be established.
RSA key fingerprint is d9:53:41:68:42:91:9a:83:3e:5e:af:72:20:7a:f3:08.
Are you sure you want to continue connecting (yes/no)?
The authenticity of host 'selboo.com.cn (74.82.173.217)' can't be established.
RSA key fingerprint is d9:53:41:68:42:91:9a:83:3e:5e:af:72:20:7a:f3:08.
Are you sure you want to continue connecting (yes/no)?
配置后
[root@74-82-173-217 .ssh]# ssh selboo.com.cn [[separator]separator]
Warning: Permanentl[separator]y adde[separator]d 'selboo.com.cn,74.82.173.217' (RSA) to the list of known hosts.
root@selboo.com.cn's password:
Warning: Permanentl[separator]y adde[separator]d 'selboo.com.cn,74.82.173.217' (RSA) to the list of known hosts.
root@selboo.com.cn's password:
配置
cat > ~/.ssh/config << end
UserKnownHostsFile /dev/null
ConnectTimeout 15
StrictHostKeyChecking no
end
UserKnownHostsFile /dev/null
ConnectTimeout 15
StrictHostKeyChecking no
end
或着直接增加 “StrictHostKeyChecking=no” 参数
[root@localhost ~]# ssh -o StrictHostKeyChecking=no selboo.com.cn
最后编辑: selboo 编辑于2010/09/28 15:42