免费注册 查看新帖 |

Chinaunix

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

求助 ssh 远程连接Permission denied, please try again. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-22 00:20 |只看该作者 |倒序浏览
新安装的centos 5.1
iptables、selinux已关闭,hosts.allow 、hosts.deny等信息都正确 ssh远程连接提示Permission denied, please try again.

root帐号和密码可以在本机登录。
郁闷啊?搞不定,求救

[root@log .ssh]# ssh -v root@xx.135.156.43
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 xx.135.156.43 [xx.135.156.43] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 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 '61.135.156.43' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:7
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,password
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Offering public key: /root/.ssh/id_dsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: password
root@xx.135.156.43's password:
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
Permission denied, please try again.
root@xx.135.156.43's password:

论坛徽章:
7
子鼠
日期:2014-04-30 15:17:002015年亚洲杯之伊拉克
日期:2015-03-24 09:32:422015亚冠之德黑兰石油
日期:2015-08-17 09:43:51黑曼巴
日期:2016-08-19 14:58:0815-16赛季CBA联赛之北控
日期:2017-01-20 09:34:40CU十四周年纪念徽章
日期:2017-02-20 16:03:5215-16赛季CBA联赛之辽宁
日期:2017-07-05 09:41:54
2 [报告]
发表于 2008-04-22 08:45 |只看该作者
有的发行版 禁止root远程登录
换个普通账户试试!

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
3 [报告]
发表于 2008-04-22 08:59 |只看该作者
An invalid name was supplied
应该是不允许root登录吧

论坛徽章:
0
4 [报告]
发表于 2008-04-22 09:06 |只看该作者
默认centos5.1是可以root登陆的,我装过几次了

论坛徽章:
0
5 [报告]
发表于 2008-04-22 09:18 |只看该作者
vi /etc/ssh/sshd_config

仔细 看一下是不是有让root 的权限登录

论坛徽章:
0
6 [报告]
发表于 2008-04-22 09:19 |只看该作者
检查服务器端的配置,配置文件sshd_config,我这里是在 /etc/ssh/ 下
其中有一行改成如下就应该可以了。
PermitRootLogin yes

不过通常不推荐用root登陆

论坛徽章:
0
7 [报告]
发表于 2013-03-20 12:55 |只看该作者
遇到同样的问题,求解

论坛徽章:
0
8 [报告]
发表于 2013-03-20 13:28 |只看该作者
ssh配置文件贴上来

论坛徽章:
0
9 [报告]
发表于 2013-03-21 09:31 |只看该作者
我估计是禁止password登录,只允许key登录,看看PasswordAuthentication是不是设置为no ?

论坛徽章:
0
10 [报告]
发表于 2013-03-21 14:46 |只看该作者
禁止root远程登录了吧.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP