作者 主題: PermitRootLogin 是 yes , root login卻Access denied ??  (閱讀 8314 次)

0 會員 與 1 訪客 正在閱讀本文。

kidmany2001

  • 懷疑的國中生
  • **
  • 文章數: 68
    • 檢視個人資料
我有一件事不懂 ,  /etc/ssh/sshd_config 檔中

PermitRootLogin 是 yes

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

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

謝謝

Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
我有一件事不懂 ,  /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:~#