免费注册 查看新帖 |

Chinaunix

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

急问:不能用ssh登陆solaris9怎么办 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-19 14:04 |只看该作者 |倒序浏览
如果在solaris9上自己ssh自己,会失败,结果如下:
bash-2.05# ssh localhost
root@localhost's password:
Permission denied, please try again.
root@localhost's password:

如果在一台solaris9上ssh 另一台 solaris9,失败的结果如下:
bash-2.05# ssh 9.181.112.139
Secure connection to 9.181.112.139 refused.

不知道是不是没配置好,555
谢谢

论坛徽章:
0
2 [报告]
发表于 2005-10-19 14:12 |只看该作者

急问:不能用ssh登陆solaris9怎么办

是没有配置好的.
检查一下$HOME/.rhost的访问权限是不是600
再有就是在/etc下有一个配置SSH的目录文件,有些时候要配置一下,是关于访问控制的.

论坛徽章:
0
3 [报告]
发表于 2005-10-19 14:30 |只看该作者

急问:不能用ssh登陆solaris9怎么办

/etc/ssh/sshd_config

PermitRootLogin no

改为

PermitRootLogin yes

论坛徽章:
0
4 [报告]
发表于 2005-10-19 14:41 |只看该作者

急问:不能用ssh登陆solaris9怎么办

谢谢谢谢。
但是我在$HOME/ 里面没有找到.rhost。
我发现/etc/ssh/sshd_config,里面有一段
# Are root logins permitted using sshd.
# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
# maybe denied access by a PAM module regardless of this setting.
# Valid options are yes, without-password, no.
PermitRootLogin no

我把no 改成了yes,但是还是不行,看来还有别的要改,555

论坛徽章:
0
5 [报告]
发表于 2005-10-19 14:54 |只看该作者

急问:不能用ssh登陆solaris9怎么办

改完sshd_config后你重新启动sshd了吗?

/etc/rc3.d/S89sshd restart

论坛徽章:
0
6 [报告]
发表于 2005-10-19 14:56 |只看该作者

急问:不能用ssh登陆solaris9怎么办

现在重启可以了,菜鸟在此谢过高手了,hoho
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP