Ubuntu 18.04开启root账户的ssh登陆

1.系统版本

ubuntu18.04

2.操作步骤

  1. 将“#PermitRootLogin prohibit-password”修改为yes
sudo vim /etc/ssh/sshd_config
  1. 找到#PermitRootLogin一行,修改为:
PermitRootLogin yes
  1. 重启ssh服务
sudo systemctl restart sshd.service

打完收工

你可能感兴趣的:(linux,服务器,ssh)