分享

ssh的问题

小钟 发表于 2015-6-29 23:06:06 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 9858
[dfdsafdsf@h3 ~]$ ssh h2
The authenticity of host 'h2 (192.168.217.12)' can't be established.
RSA key fingerprint is 04:84:9d:ba:e4:22:85:2b:7c:92:c9:21:6c:5d:d6:77.
Are you sure you want to continue connecting (yes/no)? yes   -- 为什么还会有提示输入yes/no呢?如果这次输入后,第二次就不用输入,但可能重新登录虚拟机之后还会提示的,请问这是为什么呢?
Warning: Permanently added 'h2,192.168.217.12' (RSA) to the list of known hosts.
Last login: Mon Jun 29 07:36:45 2015 from h1

配置文件:/etc/ssh/sshd_config下面的两个已经注释掉的了。
RSAAuthentication yes
PubkeyAuthentication yes


已有(2)人评论

跳转到指定楼层
yuwenge 发表于 2015-6-29 23:25:41
不需要注释掉
RSAAuthentication yes
PubkeyAuthentication yes

这样才允许公玥认证
回复

使用道具 举报

小钟 发表于 2015-6-29 23:43:52
yuwenge 发表于 2015-6-29 23:25
不需要注释掉
RSAAuthentication yes
PubkeyAuthentication yes

额~~果然,哈哈
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条