Solaris默认不能使用root用户访问,做以下修改:
$ vi /etc/ssh/sshd_config;(有些版本用的是ssh_config,我的是Solaris 9)
修改下面的内容:
# 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
把 PermitRootLogin no 改为PermitRootLogin yes,然后重启SSHD服务(我是一个UNIX菜鸟,直接用init 6重启机器).
因为这个是一个测试机,也不管这样改有没有问题了,先这样改吧,哪位有高见出来说说
永远都不推荐root用户远程登录,在任何情况下!!这是最基本的安全守则,是经过长期锤炼得来的。目前所有主流Linux及BSD发行版都是默认禁止root远程登录的,甚至有些发行版root本地登录都是不被允许的。
solaris里面pfexec很好用。。。为啥要root登录。。。