1.安装ssh-server

sudo apt-get install openssh-server

2.设置管理员密码访问

sudo vim /etc/ssh/sshd_config

  将“PermitRootLogin without-password”注释掉,并在下面添加

PermitRootLogin yes

3.重启ssh服务

sudo /etc/init.d/ssh restart

4.即可使用访问,例如:

ssh root@192.168.1.2

相关文章:

  • 2022-01-26
  • 2021-12-25
  • 2021-04-01
  • 2021-07-25
  • 2022-01-24
  • 2022-01-01
  • 2022-01-01
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-09-16
相关资源
相似解决方案