LINUX VPS没有ROOT权限是很难受的事,并且密码登陆也方便一些。
我的AWS VPS的LINUX版本是UBUNTU 13.10,首先用AWS证书验证的账户登录,


1、修改ROOT密码
sudo passwd root


2、sudo chmod 777 /etc/ssh/sshd_config
用完再把权限改回来

 

3、vi /etc/ssh/sshd_config
1.) PermitRootLogin -> PermitRootLogin yes
2.) PasswordAuthentication no -> PasswordAuthentication yes
################3.) UsePAM yes -> UsePAM no#######(这个还是要设为yes才行)
 

4、sudo chmod 644 /etc/ssh/sshd_config

 

5、sudo service sshd restart


6、重启AWS VPS,就可以使用root正常登陆了

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2022-01-14
  • 2021-05-28
  • 2021-12-06
  • 2021-11-17
  • 2021-11-21
  • 2021-12-22
猜你喜欢
  • 2021-12-06
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2021-06-05
  • 2022-12-23
相关资源
相似解决方案