现在的位置: 首页Linux>正文
关闭ssh连接时提示是否输入yes或no
2015年10月27日 Linux 暂无评论 ⁄ 被围观 1,366 view+

在ssh连接服务器时会提示:

The authenticity of host 'xx.xx.xx.xx (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is 93:b3:c5:b6:e0:d6:ae:4c:d9:5b:2f:00:2a:a3:cf:89.
Are you sure you want to continue connecting (yes/no)?

具体配置:

cat > ~/.ssh/config << end
UserKnownHostsFile /dev/null
ConnectTimeout 15
StrictHostKeyChecking no
end

或者直接增加"StrictHostKeyChecking=no"参数。

ssh -o StrictHostKeyChecking=no root@xx.xx.xx.xx

给我留言

留言无头像?


×
腾讯微博