调试了两个小时。ssh启动不了。

 

service ssh start

/etc/init.d/ssh start

 

都尝试了,还是没法启动。

 

是否启动,可以命令行: ps -s | grep ssh

查看是否有 ssh 服务。

如果只是有ssh-agent,那么ssh服务端的服务是没有启动的。

 

最后的解决办法:vim  /etc/ssh/ssh_config

 

[plain] view plain copy
 
  1. #Port 22  
  2. #Protocol 2,1  

 

前面的 # 去掉,问题解决!

以上做完,需要重启一下电脑。。

相关文章:

  • 2021-12-27
  • 2021-10-18
  • 2021-05-14
  • 2021-10-18
  • 2021-08-14
  • 2021-09-28
猜你喜欢
  • 2021-12-10
  • 2021-11-02
  • 2021-11-24
  • 2022-01-23
  • 2021-04-24
  • 2021-07-30
相关资源
相似解决方案