2
0
I can't connect with Putty to a Linux box. In the putty log I only get 3 lines and the last line is "Server unexpectedly closed network connection". FTP and ping to the Linux box works. Putty is resolving host name either. Is there a special service I need to enable with putty and ssh? Ssh is working from a Linux client.
I get ssh_exchange_identifaction
error. FTP is working though.
ssh -vvv user@www.host.com
OpenSSH_5.1p1 Debian-6.maemo5, OpenSSL 0.9.8n 24 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to www.host.com [99.99.999.999] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
Once you reboot the server, i can assure that the error will be gone. Here is the useful link regarding this topic.
– Mughil – 2011-12-29T17:37:25.643try to delete your known hosts in ~/.ssh – kobaltz – 2011-12-28T23:48:45.140
@kobaltz: I did. Folder .ssh is empty. It didn't want me to create a key? – Gigamegs – 2011-12-28T23:54:18.367
Related: Connection closed by remote host - Perhaps 'too many connections'? Have you checked the logs, and/or tried resetting the SSH daemon on the server?
– Ƭᴇcʜιᴇ007 – 2011-12-29T00:00:48.737@techie007: ftp into server works but not ssh. Is is overload or an attack? What now? – Gigamegs – 2011-12-29T00:08:58.743
Ensure you're not logged into the server more than once, and/or ensure the SSH daemon/System is configured to allow you more than one concurrent connection, and as I asked/suggested before... Have you checked the logs, and/or tried resetting the SSH daemon on the server? :) – Ƭᴇcʜιᴇ007 – 2011-12-29T00:12:17.157
@techie007: Hmm, it's virtuel server. I've installed the box myself. Never ever happend this. I report latet to you. Thanks! – Gigamegs – 2011-12-29T00:16:08.060