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?


To find the username, type


on the Xubuntu machine. Instead of "host", look for the IP address. For example, run


and look for something like inet addr:


Normally it uses the same username and password you use to log into your LINUX distro.

  • So how do you determine that? Suppose I inherit the machine and no one told me what this is? – I say Reinstate Monica Jul 3 '19 at 8:03
  • 1
    If you inherit the machine and have no login and password to even use the machine then you have a bigger problem. If you need to use the existing ssh and it does not respond to the distros username and password you can always change the ssh password, reinstall it, setup a new key pair, etc. – hwac121 Jul 3 '19 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.