Linux ssh允許root遠程密碼登錄

1、設置root密碼

sudo passwd root

2、設置 ssh

cat /etc/ssh/sshd_config 
PermitRootLogin yes
PasswordAuthentication yes


systemctl restart sshd
發佈了52 篇原創文章 · 獲贊 15 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章