酷!學園

技術討論區 => 系統安全討論版 => 主題作者是: kidmany2001 於 2010-02-13 11:53

主題: PermitRootLogin 是 yes , root login卻Access denied ??
作者: kidmany20012010-02-13 11:53
我有一件事不懂 ,  /etc/ssh/sshd_config 檔中

PermitRootLogin 是 yes

應該可以允許root login,為何我在ubuntu中無法用login呢?(Access denied)

(我只是想驗證一下PermitRootLogin 的開關功效)

謝謝
主題: 回覆: PermitRootLogin 是 yes , root login卻Access denied ??
作者: Yamaka2010-02-13 13:00
我有一件事不懂 ,  /etc/ssh/sshd_config 檔中
PermitRootLogin 是 yes
應該可以允許root login,為何我在ubuntu中無法用login呢?(Access denied)
(我只是想驗證一下PermitRootLogin 的開關功效)
謝謝

你的 root 有設密碼?!

改了設定後還要重新啟重 sshd

引用
$ sudo /etc/init.d/ssh restart
 * Restarting OpenBSD Secure Shell server sshd
$
$ ssh root@localhost
root@localhost's password:
Linux xxxx 2.6.xx-xx-generic #xx-Ubuntu SMP Thu Jan 28 01:40:19 UTC 2010 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

2 packages can be updated.
0 updates are security updates.

Last login: Sat Feb 13 12:53:21 2010 from localhost
root@xxxx:~#