第一步:

虚拟机内安装ssh服务端:

sudo apt-get insatll -y openssh-server  # -y表示一路选yes

如果不行请先更新软件列表:

sudo apt-get update

第二步:

开启服务:

service ssh start

查看是否开启成功:

ps -aux | grep ssh

 

如果无法启动则使用 , 如果成功直接跳转第三步

cd /etc/init.d
./ssh start

其他命令:

sudo service ssh start
sudo service sshrestart
sudo service sshstop

分别代表启动重启停止

第三步:

在虚拟机内:

ifconfig # 查看虚拟机ip

inet addr 表示ip

切换到电脑端:

启动xshell,  新建

一路确定即可:

(Author)
No description.Please update your profile.

View all post by admin

7 thoughts on “ssh连接本地linux虚拟机

  1. Ce n'est pas la chansons de casa del papel, putain. https://www.youtube.com/watch?v=EOo0ax3Q6RI

  2. RapidTone Diet

    2 years ago

    Fastidious answers in return of this matter with solid arguments and telling the whole thing regarding that. http://www.gzsn111.com/home.php?mod=space&uid=75859&do=profile&from=space

  3. Lutragen Review

    2 years ago

    Every weekend i used to pay a quick visit this site, for the reason that i wish for enjoyment, as this this web site conations really fastidious funny information too. http://du4art.com/Du4ArtWiki/index.php?title=The_Best_Skin_Firming_Face_Cream_-_Towards_You_To_A_Younger_And_Healthier_Complexion

  4. Whoah this blog is magnificent i like reading your posts. Keep up the great work! You understand, many individuals are looking around for this information, you can help them greatly. http://rapidtoneweightloss.org/

  5. Magnum Pump Xr

    2 years ago

    Thanks for all your valuable hard work on this web page. My mother take interest in making time for investigations and it is easy to see why. Almost all hear all regarding the dynamic form you give very useful guides via this web site and even welcome participation from people on this matter plus our favorite simple princess is in fact becoming educated a great deal. Have fun with the remaining portion of the new year. You are doing a superb job. http://magnumpump.net/

  6. RapidTone

    2 years ago

    Great blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple tweeks would really make my blog shine. Please let me know where you got your theme. Thanks http://rapidtoneweightloss.net/

  7. 1, 2 ou 3 voitures en fonction du modèle choisi. http://bposch.mgsolutions.at/ressourcen-staerken/

Leave Comments

我们立足于美利坚合众国,对全球华人服务,受北美法律保护