virtualBox ubuntu ssh 设置
原创
©著作权归作者所有:来自51CTO博客作者河豚的原创作品,请联系作者获取转载授权,否则将追究法律责任
VirtualBox 默认服务器名字是ubuntu_server
VBoxManage setextradata ubuntu_server "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata ubuntu_server "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
//这个端口可以自由设定
VBoxManage setextradata ubuntu_server "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
//ubuntu系统中的SSH服务端口22
通过dos命令终端修改VirtualBox 服务器名字是ubuntu
在安装virtualBox 下通过dos命令终端分别输入三行命令
VBoxManage setextradata ubuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata ubuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
//这个端口可以自由设定
VBoxManage setextradata ubuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
//ubuntu系统中的SSH服务端口22
上一篇:expat 处理xml常用函数名
下一篇:线程QThread
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【VirtualBox】VirtualBox 网络设置
1.1.1 虚拟机与宿主机互通 1、需先关闭系统。 2、设置virtualbox的网络,设置成桥接模
虚拟系统 桥接模式 网线 ip地址 服务器