xshell与虚拟机ubuntu连接步骤及连接失败解决办法

1.我遇到的问题

xshell与虚拟机ubuntu连接步骤及连接失败解决办法

我按照以下步骤连接:
1、打开ubuntu终端,输入命令ifconfig,查看虚拟机ip

xshell与虚拟机ubuntu连接步骤及连接失败解决办法

可以看到inet addr(ip地址),用于xshell新建会话中的主机地址
2、打开xshell,新建会话

xshell与虚拟机ubuntu连接步骤及连接失败解决办法

点击连接,出现了红色框内的连接失败提示(有的版本没有连接按钮,点击确定即可,然后双击刚新建的会话,我的是ubuntu)

xshell与虚拟机ubuntu连接步骤及连接失败解决办法

2.原因及解决办法
原因

ubuntu没有开启ssh服务,也没有安装ssh服务


解决办法

1、打开ubuntu终端
2、安装ssh服务(如果已安装ssh服务,可跳转至第3步)

sudo apt-get install openssh-server

或者

sudo apt-get install openssh-server openssh-client

3、启动ssh服务

sudo service ssh restart

若启动成功,有如下提示:

xshell与虚拟机ubuntu连接步骤及连接失败解决办法

4、查看ssh服务状态

 sudo service ssh status
xshell与虚拟机ubuntu连接步骤及连接失败解决办法

5、与xshell连接
若连接成功,则有:

xshell与虚拟机ubuntu连接步骤及连接失败解决办法
原文链接:,转发请注明来源!

发表评论

要发表评论,您必须先登录

  • 95 Responses to “xshell与虚拟机ubuntu连接步骤及连接失败解决办法”
    • mexican pharmacy online

      <a href="http://canadianpharmaciesdepot.com/">online canadian pharmacy</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>canadian online pharmacy</a>

    • legitimate canadian pharmacy

      <a href="http://canadianbestpharmacyonline.com/">overseas online pharmacies</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>mexican pharmacy online</a>

    • Eoncrma

      viagra sales london exercises to lower blood pressure viagra tablet content <a href="https://himsprescription.com/#">viagra online prescription</a> - cialis user feedback https://himsprescription.com/# - apcalis jelly 20mg- cialis virginia tax exemption certificate for alleghany health department

    • aarp approved canadian online pharmacies

      <a href="http://canadianfastpharmacy.com/">canada pharmacies online</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>best canadian online pharmacies</a>

    • Uraidssut

      things that can cause erectile dysfunction <a href=https://withouthims.com>viagra prescription joke birthday</a> how often to take trimix for erectile dysfunction injections
      hypnosis for erectile dysfunction: https://withouthims.com viagra without a doctor prescription

    • canadian pharmacies online

      <a href="http://canadianfastpharmacy.com/">online canadian pharmacy</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>canada pharmacy online</a>

    • reputable online pharmacy

      <a href="http://canadianpharmacynethd.com/">legitimate canadian pharmacy online</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>mexican pharmacies shipping to usa</a>

    • overseas online pharmacy

      <a href="http://canadianpharmacynethd.com/">online canadian pharmacy</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>mexican pharmacies online cheap</a>

    • list of reputable canadian pharmacies

      <a href="http://canadiannextpharmacy.com/">list of reputable canadian pharmacies</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>overseas pharmacies online</a>

    • international pharmacy

      <a href="http://canadiannextpharmacy.com/">pharmacy online</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>best 10 online pharmacies</a>

    • mexican online pharmacy

      <a href="http://canadianpharmacieselite.com/">reputable canadian pharmacy</a>
      http://canadianpharmacieselite.com/
      <a href=http://canadianpharmacieselite.com/>mail order prescription drugs from canada</a>

    • Jvwxblafe

      does cialis expire <a href="http://newcialed.com/ ">cialis wiki</a> cialis coupon cvs

    • Ajkifuo

      special physician was ist besser viagra cialis oder levitra
      <a href="https://kamagrajellynow.com">shemale mychelle kamagra</a> Yqoandy
      https://kamagrajellynow.com kamagra

    • canadian pharmaceuticals online safe

      <a href="http://canadianpharmacieselite.com/">canadian online pharmacies legitimate</a>
      http://canadianpharmacieselite.com/
      <a href=http://canadianpharmacieselite.com/>legitimate canadian pharmacy online</a>

    • canadian pharmacies

      <a href="http://canadianonlinepharmacynote.com/">canadian drug stores</a>
      http://canadianonlinepharmacynote.com/
      <a href=http://canadianonlinepharmacynote.com/>legitimate online pharmacies india</a>

    • YDwene

      <a href=http://www.withoutscript.com>propecia prescription canada</a> http://www.winviag.com

    • best online canadian pharmacy

      <a href="http://canadianonlinepharmacynote.com/">canadian drugs</a>
      http://canadianonlinepharmacynote.com/
      <a href=http://canadianonlinepharmacynote.com/>reputable online pharmacy</a>

    • canada drugs

      <a href="http://canadianpharmacyhopemeds.com/">best 10 online canadian pharmacies</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>canadian pharmacies online</a>

    • trust online pharmacies

      <a href="http://canadianpharmacyhopemeds.com/">overseas online pharmacy</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>top rated canadian online pharmacy</a>

    • canadian online pharmacies ratings

      <a href="http://canadianonlinepharmacykkr.com/">safe canadian pharmacies online</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>online canadian pharmacy</a>

    • aarp recommended canadian pharmacies

      <a href="http://canadianonlinepharmacykkr.com/">canadian pharmacies without an rx</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>reputable mexican pharmacies online</a>

    • mexican pharmacy

      <a href="http://canadianbestpharmacyonline.com/">overseas online pharmacies</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>best mexican online pharmacies</a>

    • safe online pharmacies

      <a href="http://canadianbestpharmacyonline.com/">mexican pharmacies shipping to usa</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>top canadian pharmacies</a>

    • Yfvly63

      female viagra (sildenafil citrate) medical education funding viagra how long before [url=https://viawithoutdctrs.com/#]viagra without a doctors visit[/url] - cada cuanto puedo tomar cialis https://viawithoutdctrs.com/# - cialis deutschland doctor check

    • Ldzfzxn

      why should a white paper include visual aids, short paragraphs and informative titles? cialis effet long terme
      <a href="https://withoutshort.com">viagra</a> Yhqrubb
      https://withoutshort.com viagra for sale

    • YDwene

      <a href=http://www.canadianvolk.com>levitra</a> http://www.tadalafilrembo.com

    • Iraidssut

      what drugs can cause erectile dysfunction <a href=https://www.withoutbro.com>viagra without doctor prescription</a> i don't have erectile dysfunction bu tcan't achieve orgasm
      sildenafil otc usa: https://www.withoutbro.com buy viagra without seeing doctor

    • Ulatfhlj

      cialis dolore petto journal medical education buying cialis online forum <a href="https://tadalafilkiva.com/#">tadalafil without a doctor's prescription</a> - what do the cialis commercials mean https://tadalafilkiva.com/# - bestil cialis arthritis in dogs

    • JDwene

      <a href=http://www.vardenafilz.com>viagra without doctor prescription</a> http://www.levitraye.com

    • legitimate canadian pharmacy online

      <a href="http://canadianpharmacyhub.com/">canadian pharmaceuticals online</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>pharmacy drugstore online</a>

    • canada online pharmacy

      <a href="http://canadianpharmacyhub.com/">best canadian mail order pharmacies</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>certified canadian online pharmacies</a>

    • most trusted canadian pharmacy

      <a href="http://canadianpharmacyguru.com/">canadian pharmaceuticals online safe</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>best online international pharmacies</a>

    • Iamburce

      Regards. Plenty of advice. <a href=https://www.goldkamagra.com>kamagra</a> was sind kamagra tabletten
      buy kamagra dublin: https://www.goldkamagra.com kamagra jelly

    • trust pharmacy canada

      <a href="http://canadianpharmacyfit.com/">canadian online pharmacies legitimate</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>overseas pharmacies shipping to usa</a>

    • pharmacy online

      <a href="http://canadianpharmacyfit.com/">canadian pharmacies</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>best online canadian pharmacy</a>

    • mexican pharmacies

      <a href="http://canadianpharmacyhub.com/">overseas online pharmacy</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>canadian online pharmacies</a>

    • Emyzwkk

      cialis generico en andorra kamagra thailand zoll
      Odqsxsc <a href="https://kamagrajellynow.com">kamagra 100</a>
      https://kamagrajellynow.com kamagra 100

    • my canadian pharmacy

      <a href="http://canadianpharmacycenterhd.com/">approved canadian online pharmacies</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>canadian pharmacy</a>

    • canada online pharmacy

      <a href="http://canadianpharmacycenterhd.com/">canada drugs online reviews</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>best mexican online pharmacies</a>

    • list of safe online pharmacies

      <a href="http://canadianpharmacyguru.com/">aarp recommended canadian online pharmacies</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>drugstore online</a>

    • pharmacy online

      <a href="http://canadianpharmaciespreshd.com/">canada online pharmacies</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>certified canadian online pharmacies</a>

    • online pharmacies

      <a href="http://canadianpharmaciespreshd.com/">mexican pharmacy online</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>canadian online pharmacies</a>

    • best canadian mail order pharmacies

      <a href="http://canadianpharmacyfit.com/">list of legitimate canadian pharmacies</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>reputable online pharmacy</a>

    • canadian pharmaceuticals online reviews

      <a href="http://canadianpharmacieshq.com/">approved canadian online pharmacies</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>canada drug pharmacy</a>

    • canada drugs online

      <a href="http://canadianpharmacycenterhd.com/">online canadian pharmacy</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>canadian pharmacies without an rx</a>