I am getting this ...
ssh HostUID@HostNumericIPaddress:2222
ssh: Could not resolve hostname HostNumericIPaddress:2222nodename nor servname provided, or not known
ssh HostUID@HostNumericIPaddress -p 2222
Operation time out
Here are the steps I followed to set it up ...
20) In "Oracle VM VirtualBox Manager" click on "Settings"
21) In "General" window click on "Network" then click on "Port Forwarding"
22) Click on Add port icon "+"
Fill in the fields with
Name Protocol Host IP Host Port Guest IP Guest Port
Rules 1 TCP host static ip 2222 10.?.?.? 22
23) Install SSH server on your VM
sudo apt-get install openssh-server
24) On OS X or whatever host
Go to "System Preferences"
25) Under "Internet & Wireless" click on "Sharing" icon
26) Check "Remote Login" option
27) The "Sharing" window shows you the username and address to SSH to. As in "ssh
userid@somecomputer.ws.utk.edu"
28) a) Turn off the guest VM
b) cd /Applications/VirtualBox
c) type VBoxManage modifyvm "Guest VM name" --natpf1 "guestssh,tcp,,2222,,22"
d) Start the guest VM