正在加载...

关闭 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)?


配置后
[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:


配置
cat > ~/.ssh/config << 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
,
发表评论
表情
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]