关闭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
相关日志shell grep 查找进程的小技巧
通过SSH把Linux硬盘挂载到本地硬盘
Linux ar 命令
Git 远程仓库的使用
mount disk Image
最后编辑: selboo 编辑于2010/09/28 15:42
转载请注明:爱开源 » 关闭 ssh 连接时提示的yes和no