
重啟之后進入用戶模式進行調(diào)試

vi? /etc/ssh/sshd_config ,9.3vi不行的話用ee(ee?/etc/ssh/sshd_config)

PermitRootLogin yes? (前面的#號也刪除,初始為no,改成yes)

PasswordAuthentication yes (前面的#號也刪除,初始為no,改成yes)PermitEmptyPasswords no

保存退出 按esc鍵 :(前面符號需要打出來)wq(小寫)另一種操作方式:先按esc再按兩下a保存

保存重啟服務(wù) service sshd restart