Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: ssh_exchange_identification: Connection closed by remote host

  1. #1
    Join Date
    Aug 2007
    Beans
    3

    Unhappy ssh_exchange_identification: Connection closed by remote host

    If this has been posted before, I apologize.
    Prior to last Thursday, I have been able to ssh into my server at home every day. Last week, I had a number of ssh login failures due to fat fingering the keyboard.

    Now, I get the error "ssh_exchange_identification: Connection closed by remote host". I am locked out. The /var/log/auth.log file shows the IP address of the subsequent login attempts and they are all failures.

    I have tried from another Ubuntu laptop and a Windows laptop using WinSCP. All attempts are locked. It appears to be IP address related because I tried to ssh using another username and I get the same message.
    I'm guessing that the IP address is blocked. I cannot get to another location.

    How do I get back in?

  2. #2
    Join Date
    Apr 2007
    Location
    Belgium
    Beans
    1,528

    Re: ssh_exchange_identification: Connection closed by remote host

    Maybe you still have to allow the ip addresses in /etc/hosts.allow
    Code:
    sshd: xxx.xxx.xxx.xxx
    You can use single ip addresses or network addresses with subnet masks.
    Disclaimer: I am currently suffering from severe CSD (Compulsive Sarcasm Disorder).
    My Site | Linux User #452328 | Running Arch Linux on Sony Vaio VGN-SZ61XN/C since October 2008

  3. #3
    Join Date
    Aug 2007
    Beans
    3

    Re: ssh_exchange_identification: Connection closed by remote host

    With the help of a friend, I found the solution.
    1) clear out the hosts.deny file
    2) restart the denyhosts daemon

    Problem solved

  4. #4
    Join Date
    Aug 2007
    Location
    Netherlands
    Beans
    290
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: ssh_exchange_identification: Connection closed by remote host

    I have the same problem, but the posted solution doesn't help me.

    Since I moved and got a new IP address, I get this error. I have always been able to log in before. I do not have access to the remote computer.

    On my own computer I don't find the ssh logs. I have no idea what to do.
    desktop: Ubuntu 13.04 64-bit | AMD64 Athlon II X3 | 3.2 GHz | 4GB RAM | ATI Radeon HD4250
    netbook: Ubuntu 12.10 32-bit| AAO ZG5 | Intel Atom | 1.6 GHz | 1GB RAM | Intel 945GSE Express

  5. #5
    Join Date
    Dec 2004
    Location
    Belgium
    Beans
    115
    Distro
    Dapper Drake Testing/

    Re: ssh_exchange_identification: Connection closed by remote host

    I've the same problem since today. My workaround: ssh to another box with another IP and then, from there, ssh to my server.

    So it seems that my current IP is blocked somewhere. Unfortunatly, I cannot find where (both /etc/hosts.* files are empty)

  6. #6
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: ssh_exchange_identification: Connection closed by remote host

    I have had the same problem due to a ssh misconfiguration. The way to repair the problem that was recommened in the forum, was to go to /var/lib/denyhosts and clear any instances of your ip address in the files in that directory. Be sure to stop the denyhost daemon before making any changes, as you will just be added to the hosts.deny list again.

    Jim

  7. #7
    Join Date
    Dec 2004
    Location
    Belgium
    Beans
    115
    Distro
    Dapper Drake Testing/

    Re: ssh_exchange_identification: Connection closed by remote host

    Well, I don't have any denyhost file. The only file I have is /etc/hosts.deny and it's empty.

    Also, package denyhosts is not installed on that server...

  8. #8
    Join Date
    Aug 2007
    Location
    Netherlands
    Beans
    290
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: ssh_exchange_identification: Connection closed by remote host

    same goes for me..
    desktop: Ubuntu 13.04 64-bit | AMD64 Athlon II X3 | 3.2 GHz | 4GB RAM | ATI Radeon HD4250
    netbook: Ubuntu 12.10 32-bit| AAO ZG5 | Intel Atom | 1.6 GHz | 1GB RAM | Intel 945GSE Express

  9. #9
    Join Date
    Oct 2007
    Beans
    1

    Re: ssh_exchange_identification: Connection closed by remote host

    Same for me.
    I usually get this message (ssh_exchange...), but sometimes not.
    When I try to login repeatedly (6-10 times), sooner or later it asks for a password and I can log in.
    The host.deny is empty, I have no /var/lib/denyhosts file, and there is much free memory.

  10. #10
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: ssh_exchange_identification: Connection closed by remote host

    If you don't have denyhosts installed then the solution I mentioned will not work.

    Jim

Page 1 of 4 123 ... LastLast

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
  •