Pi 2 intermittent ssh problem

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Pi 2 intermittent ssh problem

Postby teateawhy » Sun Jun 12, 2016 3:45 pm

Hi i have the following problem with my raspberry pi 2 running arch linux ARM.

At first i can log into ssh fine, after some hours

$ ssh pi
ssh: connect to host pi port 22: Connection refused

When this is happening the pi 2 responds to pings just fine. It is connected with the ethernet port.

After about 15 minutes ssh works again, and i don't know why.
teateawhy
 
Posts: 3
Joined: Sun Jun 12, 2016 3:34 pm

Re: Pi 2 intermittent ssh problem

Postby cmsigler » Mon Jun 13, 2016 12:22 pm

Hi,

$this->bbcode_second_pass_code('', '$ ssh pi
ssh: connect to host pi port 22: Connection refused')
Check status of sshd:

$this->bbcode_second_pass_code('', 'sudo systemctl status -n 100 -l sshd | fold')
or just look into system journal:

$this->bbcode_second_pass_code('', 'journalctl')
and see if sshd is throwing any weird messages, warnings, errors. HTH.

Clemmitt
- Raspberry Pi 3
- Odroid-C2
- Raspberry Pi Zero
cmsigler
 
Posts: 37
Joined: Wed May 25, 2016 6:01 pm

Re: Pi 2 intermittent ssh problem

Postby teateawhy » Wed Jun 15, 2016 6:27 pm

The journal and ssh log are almost empty in the time i can't ssh. The only thing i can find is
[system] Activating via systemd: service name='org.freedesktop.Avahi'
Oh and i got packet_write_wait: Connection to 192.168.0.31 port 22: Broken pipe
around 2 minutes after logging in. After that i get:
ssh: connect to host pi port 22: Connection refused
and 10 minutes after that it works again.
teateawhy
 
Posts: 3
Joined: Sun Jun 12, 2016 3:34 pm

Re: Pi 2 intermittent ssh problem

Postby teateawhy » Wed Jun 15, 2016 10:21 pm

I'm going to flash the installation image and see if it keeps happening.
teateawhy
 
Posts: 3
Joined: Sun Jun 12, 2016 3:34 pm

Re: Pi 2 intermittent ssh problem

Postby cmsigler » Thu Jun 16, 2016 12:10 am

Hi,

$this->bbcode_second_pass_quote('', 'p')acket_write_wait: Connection to 192.168.0.31 port 22: Broken pipe

Weird. (This error is at the command line on the client machine ssh'ing into the RPi2, of course.) This usually means the network connection was broken/dropped. When I connect to a client machine at a remote site and leave the connection idle for a long time I see this sometimes. But you're connecting locally.

The Avahi stuff is auto address assignment, etc. It's never caused me any problems under Arch besides being an occasional nuisance when I have a network config problem. Not sure why systemd is starting org.freedesktop.Avahi.service except that dbus may be requesting it(?). On my ALARM installations this isn't getting started according to the journal, but I'm not running a full desktop or other stuff.

Wish I could be of more help. Reflashing with the original image sounds like a good place to start :)

Clemmitt
- Raspberry Pi 3
- Odroid-C2
- Raspberry Pi Zero
cmsigler
 
Posts: 37
Joined: Wed May 25, 2016 6:01 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 17 guests