1.ubuntu 18.04系統默認是普通用戶登錄,首先設置root密碼
sudo passwd
2.安裝openssh-server
apt install openssh-server -y
如果出現報錯,請參考下圖解決即可
3.修改配置文件/etc/ssh/sshd_config
插入一行配置:
PermitRootLogin yes
4.重啟sshd
systemctl restart sshd
1.ubuntu 18.04系統默認是普通用戶登錄,首先設置root密碼
sudo passwd
2.安裝openssh-server
apt install openssh-server -y
如果出現報錯,請參考下圖解決即可
3.修改配置文件/etc/ssh/sshd_config
插入一行配置:
PermitRootLogin yes
4.重啟sshd
systemctl restart sshd
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。