码迷,mamicode.com
首页 > Windows程序 > 详细

在win10上用 x-shell连接 虚拟机里的 Ubuntu

时间:2017-08-19 18:30:05      阅读:303      评论:0      收藏:0      [点我收藏+]

标签:ddr   rest   其他   新建   init.d   sudo   ipv4   设置   虚拟机   

1. 在Ubuntu中,安装ssh:

sudo apt-get update      # 完成系统的更新

cd /etc/init.d/             # 看是否安装ssh服务

sudo apt-get install openssh-server    # 进行安装

sudo etc/init.d/ssh restart    # 重启服务,其他有:restart/open/start

ifconfig 查看 ubuntu ip地址

enp0s3 中的:inet addr:192.168.1.103 即为所需地址

2. 在x-shell中连接shh

cmd> ipconfig 查看 IPv4 地址: 192.168.1.101

若与上述 ubuntu地址不在同一个网段,需要在 虚拟机设置-网络-选择桥接-网卡选择同一网卡。

新建连接,输入ubuntu地址,输入user+pswd,完成连接。

在win10上用 x-shell连接 虚拟机里的 Ubuntu

标签:ddr   rest   其他   新建   init.d   sudo   ipv4   设置   虚拟机   

原文地址:http://www.cnblogs.com/lixiaol/p/7397275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!