#如果没有发现ssh进程说明ssh没有启动

username@hostname:~$ ps -e | grep ssh

 

#在服务端启动服务
username@hostname:~$ service ssh start
ssh: unrecognized service


#在本机远程到服务端
bogon:~ macname$ ssh higgs@192.168.1.108
ssh: connect to host 192.168.1.108 port 22: Connection refused

 

#出现以上错误,是因为没有安装ssh,执行以下命令安装
sudo apt-get install openssh-server

主机要能和Ubuntu互ping

 

相关文章:

  • 2021-06-04
  • 2022-12-23
  • 2021-09-20
  • 2021-07-18
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2021-10-27
  • 2021-08-25
  • 2021-08-07
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案