先使用瀏覽器登入系統console

切換到ROOT身份執行
$ sudo su
編輯/etc/ssh/sshd_config找到PermitRootLogin 與PasswordAuthentication 改成yes
# vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
重新啟動sshd
# systemctl restart sshd
先使用瀏覽器登入系統console
切換到ROOT身份執行
$ sudo su
編輯/etc/ssh/sshd_config找到PermitRootLogin 與PasswordAuthentication 改成yes
# vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
重新啟動sshd
# systemctl restart sshd