LinuxQuestions.org
Help answer threads with 0 replies.
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 11-13-2013, 06:12 PM   #1
jddancks
LQ Newbie
 
Registered: Jan 2013
Location: Central NY
Distribution: Mac, debian
Posts: 29

Rep: Reputation: Disabled
SSH randomly kicks me out.


I experienced following over a couple of minutes while using ssh:
Code:
root@jdd:~# Read from remote host 192.168.0.105: Connection reset by peer
Connection to 192.168.0.105 closed.
me:~ jddancks$ ssh root@192.168.0.105
ssh: connect to host 192.168.0.105 port 22: Connection refused
me:~ jddancks$ ssh root@192.168.0.105
ssh: connect to host 192.168.0.105 port 22: Connection refused
me:~ jddancks$ ssh jddancks@192.168.0.105
jddancks@192.168.0.105's password: 
Permission denied, please try again.
jddancks@192.168.0.105's password: 
Linux jdd 2.6.32-5-powerpc #1 Mon Sep 23 23:03:41 UTC 2013 ppc

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Tue Nov 12 18:04:57 2013 from me.local
jddancks@jdd:~$ su -
Password: 
su: Authentication failure
jddancks@jdd:~$ su -
Password: 
root@jdd:~# Read from remote host 192.168.0.105: Connection reset by peer
Connection to 192.168.0.105 closed.
me:~ jddancks$ ping 192.168.0.105
I got in again, and check dmesg I got something similar:
Code:
eth0 entering promiscuous mode
eth0 exiting promiscuous mode
eth0 entering promiscuous mode
I forgot about /var/log/auth.log, I did check it. It didn't give me any more information other than sessions were opened closed, a few permission denied's.

This all happened after I reinstalled debian because I ran out of room with multiple partitions and I didn't know how to recover. Before that I set it up so I had an RSA public key, passwordless authentication. And I deleted the ssh files in /root/.ssh

Its not that it wasn't working but the connection would reset randomly after a successful login, and I had been doing things. I try again later to see if its still doing it. To remedy I edited the ssh config file to go back to password authentication, and for good measure I reinstalled ssh-client and ssh-server.
 
Old 11-14-2013, 02:44 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
By reinstalling software, completely unnecessary with UNIX and overwriting configuration as you go, you forego any further chance of diagnosing things.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] ssh connection going down randomly DrTek Linux - Networking 10 10-18-2013 07:30 AM
Solais 10 ssh session disconnect randomly LinuxLover Solaris / OpenSolaris 3 02-25-2010 06:05 PM
Server kicks me out of SSH login The_Nerd Linux - Networking 2 09-20-2004 07:39 PM
ssh randomly generated key Operations Linux - Security 1 06-10-2002 11:49 PM
ssh randomly generated key Operations *BSD 1 06-10-2002 11:25 AM


All times are GMT -5. The time now is 10:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration