I'm trying to SSH another machine on my LAN using the hostname because the local IP address gets re-assigned somewhat regularly (we have issues with our ISP and frequently have to reset our network).

I have a laptop with the login freedom@flex15 and currently local IP

and I have a desktop I am trying to connect to for file transfer with the login freedom@barton and local IP

I think I just need some formatting clarification on how to connect using hostname. All the guides I read say to use something like:


but if I try:


I get this error:

Oops! Something went wrong.
Unable to find the requested location. Please check the spelling or the network settings.

However, when using:


It works fine. So I'm not sure what I'm doing wrong here because all the documentation says I can use ssh://hostname or ssh://username@hostname or something like that. It would be ideal to have some way to specific this machine that does not involve the IP address. Thank you.

  • Try freedom@barton.local.
    – user68186
    Jan 15, 2014 at 17:55

1 Answer 1


"" is a private ip address on a LAN.

So, on the server ( set a static ip address if you have not already.

On the client, edit /etc/hosts

sudo nano /etc/hosts

and add a line at the bottom - barton

You should then be able to run ssh://freedom@barton

  • 1
    But ssh://freedom@ apparently works fine... Do you mean ssh://freedom@barton?
    – Wilf
    Jan 15, 2014 at 17:53
  • 1
    yes, lol. Fixed
    – Panther
    Jan 15, 2014 at 18:02

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.