LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Putty:server unexpectedly closed network connection (https://www.linuxquestions.org/questions/ubuntu-63/putty-server-unexpectedly-closed-network-connection-484005/)

dyool 09-16-2006 03:32 AM

Putty:server unexpectedly closed network connection
 
I putty. when I try access to another machine I receive the message of putty
Code:

server unexpectedly closed network connection
Why?
When I do: ssh -X 192.168.1.4 the output is:
Quote:

Read from socket failed: Connection reset by peer
So, the problem maybe is in ssh.

philix 09-16-2006 04:29 AM

Hi,

Please check whether there is any firewall using the iptables -L ?
Check whether the SSH server configurations had any restrictive users to login ?

Regards
Good Luck

Philix
God will bless you

dyool 09-16-2006 05:13 AM

I chnage the ssd_config and the output now is
Quote:

root@helder-desktop:/home/helder/Desktop# ssh -X 192.168.1.3
The authenticity of host '192.168.1.3 (192.168.1.3)' can't be established.
RSA key fingerprint is b5:cf:6b:bc:c6:a7:fe:d9:fb:26:d2:ba:b1:86:d8:18.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.3' (RSA) to the list of known hosts.
root@192.168.1.3's password:
Permission denied, please try again.
root@192.168.1.3's password:
Permission denied, please try again.
root@192.168.1.3's password:
Permission denied (publickey,password).

dyool 09-16-2006 05:45 AM

when I do: ssh -X 192.168.1.4 the output is
Quote:

ssh: connect to host 192.168.1.4 port 22: No route to host
Why?

marcelo.sa 03-06-2012 11:54 AM

FC16 X Putty:server unexpectedly closed network connection
 
I putty 0.62. when I try access to another machine with FC16, I receive the message of putty server unexpectedly closed network connection

solution: clear option in putty program: Category -> Connection -> SSH -> Auth -> GSSAPI -> Attempt GSSAPI authentication (SSH-2 only)

jack_9 03-06-2012 12:11 PM

Connect by telnet if possible, And check if sshd service is UP..

jack_9 03-06-2012 12:26 PM

Oho I missed the complete threads.. your sshd service is up..
hmm seems like your root user is blocked.. interesting..
Quote:

Warning: Permanently added '192.168.1.3' (RSA) to the list of known hosts.
root@192.168.1.3's password:
Permission denied, please try again.
However If its possible then use telnet and check the /etc/hosts.allow and /etc/hosts.deny
if it contains your IP

And also check these following files
/var/log/secure, /var/log/auth.log, /etc/ssh/sshd_config and /etc/pam.d/ssh or /etc/pam.d/sshd or /etc/security/access.conf files

linuxguy7820 03-06-2012 12:54 PM

I had a similar issue until I set the Keep Alive in the Putty connection to something other then 0, it seemed to work best around 30 seconds.

marcelo.sa 03-07-2012 08:35 PM

Hey people, thanks, but I was not clear, I posted a problem he was having and with the resolution just below this, and I'm new to the forum ... grateful, I will replicate the question along with the solution:



I putty 0.62. when I try access to another machine with FC16, I receive the message of putty server unexpectedly closed network connection

SOLUTION: clear option in putty program: Category -> Connection -> SSH -> Auth -> GSSAPI -> Attempt GSSAPI authentication (SSH-2 only)


All times are GMT -5. The time now is 07:59 AM.