ssh connection refused,,,ssh: unrecognized service

#如果没有发现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

原文地址:https://www.cnblogs.com/sea-stream/p/10065076.html