LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-20-2019, 03:26 AM   #1
Snowmiss
LQ Newbie
 
Registered: Jul 2006
Location: Tegelen
Distribution: LFS 6.1 (building now)
Posts: 4

Rep: Reputation: 0
Can' t ssh to Pi anymore


In my home network I have a Raspberry Pi monitoring my PV-setup. Normally every other month I log in to the Pi, using SSH from my PC. Today it didn't work in the normal way.

First I found out that de IP-address from the Pi had changed, the DHCP release was only 24hours active. So I tried to connect to the new ip-address but got this message:

Code:
ssh_exchange_identification: read: Connection reset by peer
Searched the net and found this:

Code:
$ ssh -v pi@192.168.1.65
OpenSSH_7.4p1 Debian-10+deb9u6, OpenSSL 1.0.2s  28 May 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.65 [192.168.1.65] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/snowmiss/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u6
ssh_exchange_identification: read: Connection reset by peer
But now I am clueless on what to do. Any advice to get logged in again to my Pi (so I can see what my Solar panels have done lately)
 
Old 08-20-2019, 03:45 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,090

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
I don't know how old is it. Probably the SD card has been damaged, you need to try another one.
 
Old 08-20-2019, 06:32 AM   #3
Snowmiss
LQ Newbie
 
Registered: Jul 2006
Location: Tegelen
Distribution: LFS 6.1 (building now)
Posts: 4

Original Poster
Rep: Reputation: 0
That might be the problem, didn't think of that.

On the other hand, I forget to mention in the opening post: I recently installed a new OS (MX Linux) on the desktop PC. Could that be related to the problem?
 
Old 08-20-2019, 07:41 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,140

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
Could be, especially files not found. I'd be guessing passwordless ssh. Go look at your initial install notes - you did keep them, right ?.

When my pi's break I plug a monitor and keyboard in to fix them - avoids all the angst. And I agree as above, the SD cards are a dead loss - very fragile.
 
Old 08-20-2019, 11:19 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,940

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
Quote:
Originally Posted by syg00 View Post
When my pi's break I plug a monitor and keyboard in to fix them - avoids all the angst.
That!!!

Quote:
Originally Posted by syg00 View Post
And I agree as above, the SD cards are a dead loss - very fragile.
Depends on the SD card, I've sandisk cards that have been running for years without problems.
 
Old 08-20-2019, 05:23 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,140

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
Me too - one was DOA, another was broken within 6 months. Hence my jaundiced attitude ... :shrug:
 
Old 08-20-2019, 06:08 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,903
Blog Entries: 21

Rep: Reputation: 126Reputation: 126
the sshd on the Pi might still be using the old socket which is bound to the old IP address. have you tried to reboot it?

cheap flash devices do often die. they use up all the spare memory due to wear oud. premium brands do this less often.
 
Old 08-21-2019, 02:37 AM   #8
Snowmiss
LQ Newbie
 
Registered: Jul 2006
Location: Tegelen
Distribution: LFS 6.1 (building now)
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks or the tips, have something to do today ...
 
  


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
NIC not installed anymore, KDE not installed anymore, LILO duplicate Volume ID error scottad Slackware 2 03-31-2012 12:13 AM
[SOLVED] Can't SSH as root anymore (but can still FTP) Volkner Linux - Server 10 01-09-2011 08:54 AM
New firewall: ssh on port 80 not working anymore... norbi99 Linux - Security 4 10-09-2004 09:14 AM
SSH doesn't work anymore rlina50 Linux - Networking 1 01-29-2002 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration