LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-16-2006, 03:32 AM   #1
dyool
Member
 
Registered: Aug 2006
Posts: 60

Rep: Reputation: 15
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.

Last edited by dyool; 09-16-2006 at 03:48 AM.
 
Old 09-16-2006, 04:29 AM   #2
philix
Member
 
Registered: Sep 2005
Location: India
Distribution: Redhat Debian
Posts: 36

Rep: Reputation: 15
Talking

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
 
Old 09-16-2006, 05:13 AM   #3
dyool
Member
 
Registered: Aug 2006
Posts: 60

Original Poster
Rep: Reputation: 15
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).
 
Old 09-16-2006, 05:45 AM   #4
dyool
Member
 
Registered: Aug 2006
Posts: 60

Original Poster
Rep: Reputation: 15
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?
 
Old 03-06-2012, 11:54 AM   #5
marcelo.sa
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
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)

Last edited by marcelo.sa; 03-06-2012 at 11:56 AM.
 
Old 03-06-2012, 12:11 PM   #6
jack_9
LQ Newbie
 
Registered: May 2011
Posts: 23

Rep: Reputation: Disabled
Connect by telnet if possible, And check if sshd service is UP..
 
Old 03-06-2012, 12:26 PM   #7
jack_9
LQ Newbie
 
Registered: May 2011
Posts: 23

Rep: Reputation: Disabled
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

Last edited by jack_9; 03-06-2012 at 12:29 PM.
 
Old 03-06-2012, 12:54 PM   #8
linuxguy7820
Member
 
Registered: Mar 2011
Distribution: CentOS, RHEL, Fedora
Posts: 35

Rep: Reputation: 0
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.
 
Old 03-07-2012, 08:35 PM   #9
marcelo.sa
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTP connection closed by remote server newuser455 Linux - Software 8 12-11-2010 09:12 PM
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
ssh connection closed by server m_yates Linux - Security 3 08-10-2005 03:12 PM
rsync thru SSH --- connection unexpectedly closed shawn_t Linux - Networking 4 02-25-2005 02:27 PM
421 Service not available, remote server has closed connection dwarf007 Linux - Networking 1 10-09-2004 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration