This may be a pretty dump question!
So how do I get the host name so that I can ssh into my machine (which is a Mac)?
For instance :
Is there any command to find out the hostname from the terminal?
[Edit] So I was able to find the host (thanks to your help! :) ). But I'm still getting 'Connection timed out' when trying to ssh into the machine. Actually, I can ssh into my machine from the VM that shared the same connection with this machine. Is there anything else (firewall option/etc) that I need to change to completely enable remote-login?