You are not logged in.

#1 2013-02-11 16:06:58

gholen
Member
From: Göteborg
Registered: 2011-07-26
Posts: 73
Website

OpenSSH, SSH_Exchange_identification: Connection closed by remote host

Long story short. Did a reinstall of the whole system. I've done my googleing, my searthes on the board (bbs.archlinux.org) and yet no luck.

As it is. The machine IS connected to the internet through a router (ports open, and ssh allowed, running DD-WRT). The machine is updated. Main problem is I cant SSH. I really need SSH, as it allows me to make changes and so.

All I get is :

gholen@darkstar: ssh -v localhost
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [::1] port 22
debug1: Connection established.
debug1: identity file /home/xxx/.ssh/id_rsa type -1
debug1: identity file /home/xxx/.ssh/id_rsa-cert type -1
debug1: identity file /home/xxx/.ssh/id_dsa type -1
debug1: identity file /home/xxx/.ssh/id_dsa-cert type -1
debug1: identity file /home/xxx/.ssh/id_ecdsa type -1
debug1: identity file /home/xxx/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

EDIT

Did a COMPLETE clensing of leftovers, reinstalled openssh, no luck there sad
I've done just about everything in the wiki too. Halp?

Last edited by gholen (2013-02-11 16:15:46)

Offline

#2 2013-02-11 16:48:42

chris_l
Member
Registered: 2010-12-01
Posts: 390

Re: OpenSSH, SSH_Exchange_identification: Connection closed by remote host

check http://edoceo.com/notabene/ssh-exchange-identification

And, you did rebooted after updating, right? Your hard disk is not full?


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#3 2013-02-11 16:58:08

gholen
Member
From: Göteborg
Registered: 2011-07-26
Posts: 73
Website

Re: OpenSSH, SSH_Exchange_identification: Connection closed by remote host

chris_l wrote:

check http://edoceo.com/notabene/ssh-exchange-identification

And, you did rebooted after updating, right? Your hard disk is not full?


Total reinstall, meaning I dont have anything left but the new install smile

I did, however, As I got from google earlier, I see that "hosts.allow" and "hosts.deny" is no longer needed. So that don't solve the problem sad

Offline

#4 2013-02-12 02:02:06

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: OpenSSH, SSH_Exchange_identification: Connection closed by remote host

I have a lot of SSH keys myself so I ran into this a year ago.  It's not obvious but each key file that doesn't match counts as a login failure and the sshd default for failed login attempts, MaxAuthTries, is 6.  This is why you get disconnected after the 6th file.

You could change MaxAuthTries but I don't personally like that cause it will allows more hack attempts and you may not control the SSH server.  Also you may have problems with other servers that default to 6 as well.  A better approach is to specify the key file to use to connect to a host in the client config file, ~/.ssh/config.

Host *
    IdentityFile ~/.ssh/default-key

Host some-host
    IdentityFile ~/.ssh/other-key

More than one IdentityFile per host can be specified.  Also if you use ssh-agent the IdentitiesOnly directive may be necessary.

Offline

Board footer

Powered by FluxBB