Results 1 to 7 of 7

Thread: SSH No route to host

  1. #1
    Join Date
    May 2007
    Beans
    236
    Distro
    Ubuntu

    SSH No route to host

    When I try to SSH From Linux to Linux I get SSH error No Route To Host.

    When I try to SSH From Windows using PuTTY to Linux it connects fine.

    the error must then be on the client side of the linux software. Any ideas on a fix? Thanks!

    I download puTTY for Linux also, and tried that (Linux/Putty to Linux) it gave me the no route to host error.

  2. #2
    Join Date
    Aug 2011
    Beans
    23

    Re: SSH No route to host

    I had the same issue, but only when to computer I was trying to connect to was hibernating or asleep.

    All I had to do was move the mouse on the computer I was connecting to.

    This was linux to mac and linux to linux.

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,663
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH No route to host

    One of the reasons that that is happening is when the name of the machine isn't being recognized by your DNS.

    Could you post the result of these commands?
    Code:
    $ ping destination
    
    $ nslookup destination
    
    $ ping destination.local
    Replace 'destination' with the name of the machine you're trying to connect.

    Regards.

  4. #4
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: SSH No route to host

    Yup, been there!

    I've had "No route to host" in two main types of situation, both of which have been touched on in previous responses. Typically I've either made a typo in the details I've put in, e.g. wrong IP address or host name, or the machine I'm connecting to isn't available, e.g. hibernating, rebooting or some such problem.
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  5. #5
    Join Date
    Aug 2011
    Beans
    23

    Re: SSH No route to host

    Also forgot to say that sometimes the ip of the host will change. Happened to me recently causing quite a bit of confusion!

  6. #6
    Join Date
    Jan 2011
    Beans
    3

    Re: SSH No route to host

    For anyone who's not so fluent in Ubuntu/SSH:
    This may be because there is already a "fingerprint" assigned the requested ip. Which means another connection used this ip. SSH stores the fingerprint (certificate) of the connected host for every ip-adress in the file /home/yourusername/.ssh/known_hosts. If already an entry with another fingerprint for the requested ip exists in the file, SSH refuses to connect, because it compares the ip's - not matching - fingerprint. You may resolve that by deleting the accordingly entry from the file, or - not recommended for productive enviroments - delete the whole file.

  7. #7
    Join Date
    Jun 2012
    Beans
    13

    Re: SSH No route to host

    so, following meesha's statement, static ip addresses should fix that problem.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •