http://allisterx.blogspot.com/2008/05/additions-and-ssh-access-to-virtualbox.html
假設 Host OS為Windows
1.切換至VirtualBox安裝目錄VBoxManage setextradata MyLinux "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
C:\> cd "\Program Files\Sun\xVM VirtualBox"
2.設定host(XP) port 及 guest(Ubuntu) port
假設XP開 port 2222, Ubuntu仍維持標準 port 22
亦即設定NAT, 把XP的port 2222導入VirtualBox的port 22
Ubuntu的網卡要選第一張
VBoxManage setextradata MyLinux "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata MyLinux "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
沒有留言:
張貼留言