免费注册 查看新帖 |

Chinaunix

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

请教,ssh配置正确但是无法以root登录solaris,[附debug信息] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-21 09:49 |只看该作者 |倒序浏览
# ssh -v v880b
OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to v880b [10.0.11.12] 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 -1
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.0.1
debug1: match: Sun_SSH_1.0.1 pat Sun_SSH_1.0*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1
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: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'v880b' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:16
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,password
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
Connection closed by 10.0.11.12

用一般的用户登录正常。
sshd_conf中相关配置如下:
# grep -v "^#" /etc/ssh/sshd_config | grep "^[a-zA-Z]"
Protocol 2
Port 22
ListenAddress ::
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
CheckMail no
KeepAlive yes
SyslogFacility auth
LogLevel info
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
Ciphers aes128-cbc,blowfish-cbc,3des-cbc
MACS    hmac-sha1,hmac-md5
ServerKeyBits 768
KeyRegenerationInterval 3600
StrictModes yes
LoginGraceTime 600
MaxAuthTries    6
MaxAuthTriesLog 3
PermitEmptyPasswords no
PasswordAuthentication yes
PAMAuthenticationViaKBDInt yes
PermitRootLogin yes
Subsystem       sftp    /usr/lib/ssh/sftp-server
IgnoreRhosts yes
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes

已经清空known_hosts

论坛徽章:
0
2 [报告]
发表于 2006-11-21 11:45 |只看该作者
PermitRootLogin yes 改成no

论坛徽章:
0
3 [报告]
发表于 2006-11-21 14:20 |只看该作者
改成no? 那不是不允许root以ssh远程登录了?

论坛徽章:
0
4 [报告]
发表于 2006-11-22 08:36 |只看该作者
没有人回答么? 顶上,帮主帮我看看阿,谢谢

论坛徽章:
0
5 [报告]
发表于 2006-11-23 22:43 |只看该作者
permit 是禁止

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
6 [报告]
发表于 2006-11-24 11:37 |只看该作者
PermitRootLogin yes为允许root登录
你还是看看你的v880有什么别的限制。。。。

[ 本帖最后由 非凡公子 于 2006-11-24 11:39 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2006-11-24 13:51 |只看该作者
可以用truss跟踪一下sshd的log

论坛徽章:
0
8 [报告]
发表于 2006-11-26 18:26 |只看该作者
原帖由 非凡公子 于 2006-11-24 11:37 发表
PermitRootLogin yes为允许root登录
你还是看看你的v880有什么别的限制。。。。

正解
10里的默认是允许root远程登陆
检查一下配置文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP