FreeBSD開啓ROOT遠程SSH登陸

輸入命令:
edit /etc/ssh/sshd_config

在最後面加入:
PermitRootLogin yes #允許root登錄
PermitEmptyPasswords no #不允許空密碼登錄
PasswordAuthentication yes # 設置是否使用口令驗證。

重新啓動sshd:
/etc/rc.d/sshd restart
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章