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

一.我遇到的问题

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

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

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

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

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

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

二.原因及解决办法

原因

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连接步骤及连接失败解决办法

此教程来自固定链接: http://www.rakbuluo.com/p48/

原文链接:,转发请注明来源!

发表评论

  • 70 Responses to “xshell与虚拟机ubuntu连接步骤及连接失败解决办法”
    • trust online pharmacies

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

      回复
    • mail order prescription drugs from canada

      <a href="http://canadianpharmacyguru.com/">discount canadian drugs</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>canadian pharmacy</a>

      回复
    • safe online pharmacies

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

      回复
    • Aamburce

      You made your point pretty nicely.. <a href=https://www.kamagramama.com>kamagra 100mg</a> kamagra fast website
      kamagra kamagra deutschland: https://www.kamagramama.com kamagra

      回复
    • canada drug pharmacy

      <a href="http://canadianpharmacyfit.com/">online pharmacy</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>online pharmacy reviews</a>

      回复
    • canadian pharmaceuticals online reviews

      <a href="http://canadianpharmacyguru.com/">best mexican online pharmacies</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>online pharmacy canada</a>

      回复
    • highest rated canadian pharmacies

      <a href="http://canadianpharmacycenterhd.com/">drugstore online</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>canada pharmacies online prescriptions</a>

      回复
    • canada drugs online review

      <a href="http://canadianpharmacyfit.com/">canadian pharmacies online reviews</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>approved canadian pharmacies online</a>

      回复
    • canadian pharmacies mail order

      <a href="http://canadianpharmaciespreshd.com/">legitimate canadian mail order pharmacies</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>best online pharmacy</a>

      回复
    • canadian online pharmacy no prescription

      <a href="http://canadianpharmacycenterhd.com/">canada drug pharmacy</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>online pharmacy</a>

      回复
    • list of approved canadian pharmacies

      <a href="http://canadianpharmacyhub.com/">list of legitimate canadian pharmacies</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>most trusted canadian pharmacy</a>

      回复
    • mexican border pharmacies

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

      回复
    • mexican pharmacies shipping to usa

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

      回复
    • canadian pharmacies

      <a href="http://canadianpharmaciespreshd.com/">legitimate online pharmacies india</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>canadian pharmaceuticals online</a>

      回复
    • overseas online pharmacies

      <a href="http://canadianpharmacyfit.com/">legitimate canadian pharmacy online</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>canadian drugs</a>

      回复
    • safe online pharmacies

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

      回复
    • reputable mexican pharmacies online

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

      回复
    • pharmacy online

      <a href="http://canadianpharmacycenterhd.com/">aarp recommended canadian pharmacies</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>overseas pharmacy</a>

      回复
    • overseas pharmacies online

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

      回复
    • best canadian online pharmacies

      <a href="http://canadianpharmaciesdepot.com/">mexican border pharmacies shipping to usa</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>canada pharmacies online prescriptions</a>

      回复
    • canadian pharmacies without an rx

      <a href="http://canadianpharmacynethd.com/">canada pharmacies online prescriptions</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>reliable mexican pharmacies</a>

      回复
    • legitimate online pharmacies india

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

      回复
    • online canadian pharmacy

      <a href="http://canadianpharmacieshq.com/">list of legitimate canadian pharmacies</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>most trusted canadian pharmacy</a>

      回复
    • Namburce

      Regards. A good amount of posts. <a href=https://www.goldkamagra.com>kamagra oral jelly</a> mychelle kamagra ts
      kamagra autofahren: https://www.goldkamagra.com kamagra

      回复
    • mexican pharmacy online

      <a href="http://canadianpharmaciesdepot.com/">best mexican online pharmacies</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>online pharmacy canada</a>

      回复
    • canadian pharmaceuticals online

      <a href="http://canadianpharmacynethd.com/">canada drugs</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>aarp recommended canadian online pharmacies</a>

      回复
    • canadian online pharmacy reviews

      <a href="http://canadiannextpharmacy.com/">canadian online pharmacies ratings</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>canadian pharmaceuticals online reviews</a>

      回复
    • canadian internet pharmacy

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

      回复
    • canada pharmacies online prescriptions

      <a href="http://canadiannextpharmacy.com/">online pharmacies of canada</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>drugstore online</a>

      回复
    • mexican pharmacies online cheap

      <a href="http://canadianpharmacieselite.com/">legitimate canadian mail order pharmacies</a>
      http://canadianpharmacieselite.com/
      <a href=http://canadianpharmacieselite.com/>best mexican online pharmacies</a>

      回复
    • CharlesHob

      tinder website , tinder date
      <a href=http://tinderdatingsiteus.com/?>tider </a>

      回复
    • canadian pharmacy online

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

      回复
    • mexican pharmacies shipping to usa

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

      回复
    • canada pharmacy

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

      回复
    • overseas pharmacies online

      <a href="http://canadiannextpharmacy.com/">canada pharmacies online</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>mexican border pharmacies</a>

      回复
    • discount canadian drugs

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

      回复
    • canadian trust pharmacy

      <a href="http://canadianpharmacieselite.com/">mexican border pharmacies shipping to usa</a>
      http://canadianpharmacieselite.com/
      <a href=http://canadianpharmacieselite.com/>trust online pharmacy</a>

      回复
    • legitimate canadian pharmacy

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

      回复
    • mail order prescription drugs from canada

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

      回复
    • safe canadian pharmacies online

      <a href="http://canadianpharmacyhopemeds.com/">drugstore online</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>most trusted canadian online pharmacies</a>

      回复
    • online pharmacies canada

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

      回复
    • canadian drug stores

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

      回复
    • reputable mexican pharmacies online

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

      回复
    • mexican border pharmacies shipping to usa

      <a href="http://canadianonlinepharmacykkr.com/">canadian pharmacies online reviews</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>canada drug</a>

      回复
    • canadian pharcharmy online

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

      回复
    • trust online pharmacies

      <a href="http://canadianbestpharmacyonline.com/">canadian pharmacies mail order</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>list of approved canadian pharmacies</a>

      回复
    • trust online pharmacy

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

      回复
    • overseas pharmacies

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

      回复
    • canada drug

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

      回复
    • AExcuppy

      universal health insurance requires which of the following methods to limit the use of technology? - <a href="https://www.withoutbro.com">cialis</a> Ozyi55o
      is there a legitimate generic cialis
      can i take a double dose of viagra: <a href="https://www.withoutbro.com/">viagra online 100mg</a>

      回复
    • safe online pharmacies

      <a href="http://canadianpharmacyguru.com/">canada drugs</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>canadian internet pharmacy</a>

      回复
    • mexican pharmacy online

      <a href="http://canadianpharmacyfit.com/">most trusted canadian pharmacy</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>online pharmacy canada</a>

      回复
    • safe online pharmacies

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

      回复
    • canadian internet pharmacy

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

      回复
    • legitimate canadian pharmacy

      <a href="http://canadianpharmacycenterhd.com/">canadian trust pharmacy</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>trust pharmacy canada</a>

      回复
    • pharmacy online

      <a href="http://canadianpharmacieshq.com/">canadian pharmaceuticals online safe</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>canada pharmacy online</a>

      回复
    • mexican pharmacies online cheap

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

      回复
    • international pharmacies that ship to the usa

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

      回复
    • best online canadian pharmacy

      <a href="http://canadianpharmaciesdepot.com/">reputable mexican pharmacies online</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>online pharmacies of canada</a>

      回复
    • discount canadian drugs

      <a href="http://canadianpharmacieshq.com/">canadian online pharmacies legitimate</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>mexican pharmacies</a>

      回复
    • online canadian pharmacy

      <a href="http://canadianpharmacieshq.com/">best online pharmacies</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>discount canadian drugs</a>

      回复
    • canadian pharmaceuticals online reviews

      <a href="http://canadianfastpharmacy.com/">legitimate online pharmacies india</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>canadian online pharmacy no prescription</a>

      回复
    • canadian online pharmacies

      <a href="http://canadianpharmaciesdepot.com/">canadian pharmaceuticals online</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>canadian pharmacies online reviews</a>

      回复
    • mexican pharmacy

      <a href="http://canadianpharmacieshq.com/">legitimate canadian mail order pharmacies</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>mexican pharmacy online</a>

      回复
    • top free online dating sites

      dating site

      回复
    • Tinder dating site

      tinder dating app , tindr
      <a href=http://tinderdatingsiteus.com/?>tinder website </a>

      回复
    • tinder site

      tinder dating app , how to use tinder

      回复
    • Stephenpeaky

      viagra <a href=" http://sild100fast.com/# ">buy generic viagra online</a> otc viagra

      回复
    • pharmacy drugstore online

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

      回复
    • cialis prescription online

      Cialis 20 Prix Ovekly https://biracialism.com/ - Cialis DICIVE Where Is The Best Place To Buy Viagara Oppone <a href=https://biracialism.com/#>Cialis</a> immazy Buy Otc Zoloft

      回复