sudo su vim /etc/ssh/sshd_config ``` 把 PermitRootLogin without-password 前面加上 # 註解 #PermitRootLogin without-password 加入下面這一行 ``` PermitRootLogin yes ``` 2.給root密碼 ``` sudo passwd root ``` 3\. 重新啟動 ssh Server ``` service ssh restart ```
PermitRootLogin yes ``` 2.給root密碼 ``` sudo passwd root ``` 3\. 重新啟動 ssh Server ``` service ssh restart ```
sudo passwd root ``` 3\. 重新啟動 ssh Server ``` service ssh restart ```
service ssh restart ```