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 [email protected]
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

你可能感兴趣的:(ssh connection refused,,,ssh: unrecognized service)