没有安装ssh服务,可以通过:
ps -ef | grep ssh 查询。

2.安装ssh

sudo apt-get install openssh-server
ps:安装时如果提示fail,可以更换下源。

3.修改配置文件

sudo vi /etc/ssh/sshd_config

PermitRootLogin without-password #注释掉这行

PermitRootLogin yes #增加这行

4.重启服务

/etc/init.d/ssh restart

启动ssh命令:service sshd start
停止ssh命令:service sshd stop

5.远程连接报下面错误,解决方法同上

[root@salt ~]# ssh root@192.168.141.77
Permission denied (publickey,password).

相关文章:

  • 2022-12-23
  • 2021-07-03
  • 2021-12-15
  • 2021-11-19
  • 2021-10-14
  • 2022-02-16
  • 2021-09-02
猜你喜欢
  • 2021-10-18
  • 2021-11-02
  • 2021-11-13
  • 2021-08-28
  • 2022-12-23
  • 2021-10-25
相关资源
相似解决方案