43 字
1 分钟
Ubuntu设置允许root用户ssh登录
  • 1.设置root用户密码
Terminal window
sudo passwd root
  • 2.修改sshd_config文件
Terminal window
sudo vim /etc/ssh/sshd_config

修改下面配置

#PermitRootLogin prohibit-password
#PasswordAuthentication yes

PermitRootLogin yes
PasswordAuthentication yes
  • 3.重启ssh服务
Terminal window
sudo service sshd restart