ssh <username>@<host> How do I find the user name and host name of my local machine?
I just installed openssh on my Xubuntu machine using this guide. It's installed successfully which I checked by doing ssh -v localhost
.
Now I want to ssh into this machine from my mac. I have my router pointed at 22 but I cant seem to figure out what the username
and host
should be to make this successful.
How do I find ssh <username>@<host>
for my local machine?
Solution 1:
To find the username, type
whoami
on the Xubuntu machine. Instead of "host", look for the IP address. For example, run
ifconfig
and look for something like inet addr:192.168.0.100