美文网首页
虚拟机连不上Xhell

虚拟机连不上Xhell

作者: 线断木偶人 | 来源:发表于2019-03-25 11:48 被阅读0次

刚刚安装的虚拟机,ping 网络是通的,不知道是什么原因连不上xhell

最后的原因是没有安装openssh

那就安装吧!

Ubantu 18.10

检查是安装了ssh服务

ssh localhost

结果
ssh: connect to host localhost port 22: Connection refused 

安装和启动

sudo apt-get install openssh-server
sudo /etc/init.d/ssh start

查看openssh服务是否开启

ps -e|grep ssh
or
 netstat -tnl
image.png

相关文章

网友评论

      本文标题:虚拟机连不上Xhell

      本文链接:https://www.haomeiwen.com/subject/rkdvvqtx.html