免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2278 | 回复: 1
打印 上一主题 下一主题

关于ssh基于主机认证的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-24 12:38 |只看该作者 |倒序浏览
配置两个服务器之间基于主机认证进行ssh连接,用machineA连接machineB是提示
[root@108test ~]# ssh -p63008 192.168.8.223
get_socket_address: getnameinfo 8 failed
userauth_hostbased: cannot get local ipaddr/name
root@192.168.8.223's password:

以下是关于基于主机认证的配置:
(192.168.8.223)machineB:
[root@gw ~]# more /etc/ssh/ssh_known_hosts
192.168.8.108 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAtIm6J/TnneOnmwOfp82qSGS3h67i699AeRNDCvbBmb9eoIxhtxu85n5+J1zrkSondqx/OGS79Ns/pgE+TE
HOWle2zDLYUxeiiLRv8MZ4uWNL7HF349WwvceZTtLlXldyu/dwRuEEVArzIteySgKPs5TmjDc3OtDXp6OlQxA+Yhc=

[root@gw ~]# more /etc/ssh/sshd_config
Port 63008
SyslogFacility AUTHPRIV
RhostsRSAAuthentication yes
HostbasedAuthentication yes
IgnoreUserKnownHosts yes
PasswordAuthentication yes
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
X11Forwarding yes
Subsystem       sftp    /usr/libexec/openssh/sftp-server

(192.168.8.108)machineA:
[root@108test ~]# more /etc/ssh/ssh_config
   HostbasedAuthentication yes
Host *
        GSSAPIAuthentication yes
       ForwardX11Trusted yes
EnableSSHKeysign yes

请高手指点!!!

论坛徽章:
0
2 [报告]
发表于 2008-04-24 13:24 |只看该作者
我在(192.168.8.108)machineA的/etc/hosts中加入下面一行后就没有哪个错误提示了,
192.168.8.108           108test

但是还是要求我输入密码,基于主机验证的ssh连接可以不用输入密码吗?怎么配置才能不用密码就能登录?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP