ubuntu 使用root遠程ssh登陸配置

安裝SSH Servervim

$ sudo apt install openssh-server

設置root用戶密碼ssh

$ sudo passwd root

修改配置文件rest

$ sudo vim /etc/ssh/sshd_config

找到以下一行code

PermitRootLogin prohibit-password

更改成server

PermitRootLogin yes

重啓ssh服務it

$ sudo systemctl restart sshd
相關文章
相關標籤/搜索