MobaXterm连接Ubuntu显示connection refused
时间:2020-02-05 09:23:04
收藏:0
阅读:720
#如果没有发现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
原文:https://www.cnblogs.com/y4247464/p/12262320.html
评论(0)