VirtualBox上のCentOSにsshでログインする方法 in Mac
VirtualBox上のCentOSにsshでログインする方法のメモ。ホストOSはMacです。
VBoxManage setextradata "cen" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP VBoxManage setextradata "cen" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22 VBoxManage setextradata "cen" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 50022
HTTP通信も同じようにできる。
VBoxManage setextradata "cen" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" TCP VBoxManage setextradata "cen" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" 80 VBoxManage setextradata "cen" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" 50080