idktp

安装SSH 

sudo apt-get install openssh-server -y

为root用户创建密码

sudo passwd root

切换为root用户,并且编辑sshd_config文件,修改以下三项。

UsePAM no
PasswordAuthentication yes
PermitRootLogin yes

su root

vim /etc/ssh/sshd_config

重启ssh服务

/etc/init.d/ssh restart

  

分类:

技术点:

相关文章:

  • 2017-11-22
  • 2021-11-02
  • 2019-07-03
  • 2021-12-09
  • 2021-09-21
  • 2021-12-25
  • 2021-06-12
  • 2022-01-14
猜你喜欢
  • 2021-12-18
  • 2021-11-27
  • 2021-11-07
  • 2021-09-18
  • 2021-12-03
  • 2021-11-19
  • 2021-08-13
相关资源
相似解决方案