免费注册 查看新帖 |

Chinaunix

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

ssh报Permission denied (publickey,gssapi-with-mic). [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-01 22:05 |只看该作者 |倒序浏览
自己连接自己的测试机器,用密码方式验证可以。禁用密码验证后用私钥就报Permission denied (publickey,gssapi-with-mic).找了很久也不明所以。还是这里请教各位吧。

[root@localhost .ssh]# ssh -v *.*.11.124 //这个地址是adsl动态ip,客户端和服务器都是这个
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 58.51.11.124 [58.51.11.124] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '58.51.11.124' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address//不能用ip吗

论坛徽章:
0
2 [报告]
发表于 2007-02-02 20:58 |只看该作者
没有别的朋友遇到过这个问题么?

论坛徽章:
0
3 [报告]
发表于 2009-08-06 08:59 |只看该作者
原帖由 wildlily980 于 2007-2-1 22:05 发表
自己连接自己的测试机器,用密码方式验证可以。禁用密码验证后用私钥就报Permission denied (publickey,gssapi-with-mic).找了很久也不明所以。还是这里请教各位吧。

[root@localhost .ssh]# ssh -v *.*.11.12 ...

我遇见了。怎么解决呀?

论坛徽章:
0
4 [报告]
发表于 2009-08-06 09:06 |只看该作者
密钥制作步骤写出来看看。

论坛徽章:
0
5 [报告]
发表于 2009-08-06 11:07 |只看该作者

回复 #1 wildlily980 的帖子

这个好像是key加的不标准的原因,以前的时候直接用cat *.pub >>autorized_keys之后用key登录也报这个错误,后来用ssh-keygen -i -f把公钥转换一下就好了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP