Example:
- Host: Windows/MacOSX
- Guess: Linux
- Service name (any name without space): guestssh
- Guess Port: 22
- Host Port: 2222
- Note: If network interface in VBox is set to Intel, use e1000 rather than pcnet
- VBoxManage setextradata {Virtual Machine Name} "VBoxInternal/Devices/{pcnet | e1000}/0/LUN#0/Config/{Service Name}/HostPort" 2222
- VBoxManage setextradata {Virtual Machine Name} "VBoxInternal/Devices/{pcnet | e1000}/0/LUN#0/Config/{Service Name}/GuestPort" 22
- VBoxManage setextradata {Virtual Machine Name} "VBoxInternal/Devices/{pcnet | e1000}/0/LUN#0/Config/{Service Name}/Protocol" TCP
- (@MacOX):
- netstat -nlap tcp
- ssh -p 2222 localhost
沒有留言:
發佈留言