免费注册 查看新帖 |

Chinaunix

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

求助:ssh连接不了远程主机 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-24 16:10 |只看该作者 |倒序浏览
如下:
root@host1# ssh user1@host2
鍙d护:
鍙d护:
鍙d护:
权限被拒绝 (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive)。
(此处未输入密码,直接回车)

root@host1 # telnet 192.168.1.23 22
Trying 192.168.1.23...
Connected to 192.168.1.23.
Escape character is '^]'.
SSH-2.0-Sun_SSH_1.1

Protocol mismatch.
Connection to 192.168.1.23 closed by foreign host.

root@host1# ssh user1@host2
鍙d护:
此处输入正确密码,系统再无反应,只能另外登录,kill掉这个ssh进程



请各位看看有没碰过这问题,~~~~~~~~

论坛徽章:
0
2 [报告]
发表于 2010-08-24 16:38 |只看该作者
ssh有个参数开起debug模式,再把信息贴出来瞧瞧

论坛徽章:
0
3 [报告]
发表于 2010-08-25 15:03 |只看该作者
Sun_SSH_1.1,SSH 协议 1.5/2.0,OpenSSL 0x0090704f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.23 [192.168.1.23] port 22.
debug1: Connection established.
debug1: identity file /export/home/capitek/.ssh/identity type -1
debug1: identity file /export/home/capitek/.ssh/id_rsa type -1
debug1: identity file /export/home/capitek/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.1
debug1: no match: Sun_SSH_1.1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-Sun_SSH_1.1
debug1: Failed to acquire GSS-API credentials for any mechanisms (未提供证书,或者证书不可用或无法存取
未知代码0
)
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: Peer sent proposed langtags, ctos: zh,zh-CN,i-default
debug1: Peer sent proposed langtags, stoc: zh,zh-CN,i-default
debug1: We proposed langtags, ctos: zh
debug1: We proposed langtags, stoc: zh
debug1: Negotiated lang: zh
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: Remote: 鍗忓晢鐨勪富璇?█鐜??: zh.UTF-8
debug1: Remote: 鍗忓晢鐨勬秷鎭??瑷

论坛徽章:
1
处女座
日期:2013-08-19 15:17:06
4 [报告]
发表于 2010-08-31 22:21 |只看该作者
看样子是两边的ssh协议版本不一致或者openssl等相关软件安装有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP