原文:https://blog.csdn.net/wy_97/article/details/78294562 

1.默认使用ubuntu用户登录,密码为服务器配置时设置的密码,可在重置密码中修改

2.修改 root 密码

sudo passwd root
3.修改配置文件

sudo vi /etc/ssh/sshd_config
找到下面相关配置:

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
更改为:

# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes
4.重启ssh

sudo service ssh restart



相关文章:

  • 2022-02-22
  • 2021-08-07
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-17
  • 2021-08-13
  • 2021-12-18
  • 2021-10-19
  • 2022-12-23
  • 2021-08-02
  • 2021-08-02
相关资源
相似解决方案