sqsnbrdcwlcfzj

阿里服务器一开始用户名是一串乱码,对其更改如下,就是新添加一个用户:

1.nano /etc/hostname :## 改为相应项目名称

2.nano /etc/hosts  :##127.0.0.1 【项目名称】

3.添加相应用户 :adduser【项目名称】

4.nano /etc/sudoers   ## 允许SUDO权限  【项目名称】 ALL=(ALL:ALL) ALL

5./etc/rc.d/init.d/ssh restart    ##重启服务器

nano /etc/ssh/sshd_config    PermitRootLogin no  ## 测试可以登录并有SUDO权限之后,关闭root登录

分类:

技术点:

相关文章:

  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-06-09
  • 2021-08-24
  • 2022-02-22
  • 2021-12-29
猜你喜欢
  • 2021-11-24
  • 2022-02-08
  • 2021-06-11
  • 2021-07-09
  • 2021-11-23
  • 2021-09-28
相关资源
相似解决方案