LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2010, 11:00 PM   #1
avtandil_k
Member
 
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Rep: Reputation: 16
Putty - ssh to ubuntu server 9.10


Hi,
I can't figure out why I keep getting kicked out of the ssh session almost immediately after login to an ubuntu 9.10 server (32bit).
See the screenshot. I just installed this server and didn't make any ssh config options. I thought it would work right away.
When I ping that server I get sporadic responses where some packets are lost. It's an old Dell poweredge 1400:

PING 10.45.48.104 (10.45.48.104) 56(84) bytes of data.
64 bytes from 10.45.48.104: icmp_seq=1 ttl=64 time=7.29 ms
64 bytes from 10.45.48.104: icmp_seq=2 ttl=64 time=0.353 ms
64 bytes from 10.45.48.104: icmp_seq=3 ttl=64 time=0.403 ms
64 bytes from 10.45.48.104: icmp_seq=4 ttl=64 time=0.389 ms
64 bytes from 10.45.48.104: icmp_seq=5 ttl=64 time=0.441 ms
64 bytes from 10.45.48.104: icmp_seq=6 ttl=64 time=1.43 ms
64 bytes from 10.45.48.104: icmp_seq=50 ttl=64 time=1.58 ms
64 bytes from 10.45.48.104: icmp_seq=51 ttl=64 time=1.58 ms
64 bytes from 10.45.48.104: icmp_seq=52 ttl=64 time=1.58 ms
64 bytes from 10.45.48.104: icmp_seq=53 ttl=64 time=1.56 ms
64 bytes from 10.45.48.104: icmp_seq=54 ttl=64 time=1.59 ms

--- 10.45.48.104 ping statistics ---
54 packets transmitted, 11 received, 79% packet loss, time 53272ms
rtt min/avg/max/mdev = 0.353/1.656/7.293/1.863 ms

where should I start troubleshooting? Authentication? Hardware?
Attached Thumbnails
Click image for larger version

Name:	err.jpg
Views:	28
Size:	45.8 KB
ID:	3260  
 
Old 04-02-2010, 11:16 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
IMO more likely to be hardware. If you look at "ifconfig eth0" does it show lots of dropped packets or packets with errors?
 
Old 04-02-2010, 11:46 PM   #3
avtandil_k
Member
 
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Original Poster
Rep: Reputation: 16
Hmmm. I see errors. And I do see the ipv6 address. Could this be the source of the problem? Can it be the network driver?

Last login: Fri Apr 2 19:40:07 2010 from 10.45.31.189
samuel@dev-ub910-01:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:b0:d0:fe:27:ed
inet addr:10.45.48.104 Bcast:10.45.255.255 Mask:255.255.0.0
inet6 addr: fe80::2b0:d0ff:fefe:27ed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:431026 errors:0 dropped:0 overruns:0 frame:0
TX packets:2013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38396328 (38.3 MB) TX bytes:216439 (216.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:272 (272.0 B) TX bytes:272 (272.0 B)

Last edited by avtandil_k; 04-02-2010 at 11:53 PM.
 
Old 04-03-2010, 06:22 AM   #4
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Quote:
Originally Posted by avtandil_k View Post
Hmmm. I see errors...

RX packets:431026 errors:0 dropped:0 overruns:0 frame:0
TX packets:2013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38396328 (38.3 MB) TX bytes:216439 (216.4 KB)
That all looks fine, 431026 packets, 0 errors, 0 dropped and 0 overruns.

Quote:
where should I start troubleshooting? Authentication? Hardware?
How do you know whether it is the server or the client? You probably want to run a few checks to see if you can see which is causing the problem. First thing I would do (before even looking in the logs), is try ssh from the server to itself, using ssh localhost - if that has no problems, try another client PC (if available) to see if you have the same problems. Also which user are your trying to login as? Have you tried logging in locally (su'ing) as the same user - e.g. one thing that would give the symptoms you describe would be if the user's shell was set to '/bin/false' - such as the user 'mysql'.

I you determine that the problem lies with your server, then look in your logs, probably starting with /var/log/auth.log, typically you would expect to see something like the following for a successful session:
Code:
Apr  3 12:03:58 your server sshd[2938]: Accepted password for user from ::1 port 43340 ssh2
Apr  3 12:03:58 your server sshd[2938]: pam_unix(sshd:session): session opened for user user by (uid=0)
Apr  3 12:04:08 your server sshd[3014]: Received disconnect from ::1: 11: disconnected by user
Apr  3 12:04:08 your server sshd[2938]: pam_unix(sshd:session): session closed for user user
auth.log might be clearer if you grep it for sshd e.g. 'grep sshd /var/log/auth.log'

If the problem isn't with SSH, but is on your server, you probably want to review all relevant logs - if you aren't sure which files might be relevent, try 'ls -ltr /var/log' to see which log files have changed recently (they will be listed in order since last changed). Ignore wtmp and lastlog as they are binary files. You can also discount any file which has not changed in the last few minutes.
 
Old 04-05-2010, 02:28 PM   #5
avtandil_k
Member
 
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Original Poster
Rep: Reputation: 16
Replaced the network card. It's all good now. Thanks everyone.
 
  


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
move file from server to server using ssh (putty), plz help niitpro Linux - Newbie 2 02-07-2008 09:43 PM
Can't SSH/Putty into Debian server rushinblue Linux - Newbie 9 10-31-2007 03:34 PM
putty ssh login in Linux server alexz Linux - General 5 06-08-2007 12:22 PM
Ubuntu 6.06 Server(SSH Setup/Putty) TechMansoor Linux - Networking 1 12-16-2006 09:05 PM
Activating VNC-server from putty (ssh) bulls_i Linux - Networking 4 10-21-2005 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 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