SSH connection refused after reboot (raspberry pi)

This forum is for discussion about general software issues.

SSH connection refused after reboot (raspberry pi)

Postby paintedocean » Sun Jan 10, 2016 9:52 pm

Hello,

I have a Raspberry Pi running archlinux which I use as a fileserver, connected via network cable to my router.
I solely connect via ssh, since I have no monitor / keyboard connected to the board.
Worked without any problem till today, when I issued a “reboot” from the ssh session. Actually, from what I recall, it is the first time I use the reboot command - previously I have always used shutdown -h now.

After reboot, I am not able to ssh into the system anymore (details below).
Hence, I lost any possibility to interface myself with the running board.
I can ping however.

$this->bbcode_second_pass_code('', '
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.11 [192.168.0.11] port 22.
debug1: connect to address 192.168.0.11 port 22: Connection refused
ssh: connect to host 192.168.0.11 port 22: Connection refused
')

Now, I don’t know what could be gone wrong. Except for the fact that I found this link on the archlinux wiki: SSH connection left hanging after poweroff/reboot

As I mentioned, the only possibility is to log in via ssh.
But I can plug the SD card into my laptop and edit files, if I only new what need to be done to fix the problem.

Any suggestion would be welcome, I really would like to avoid setting up a new installation again.
paintedocean
 
Posts: 2
Joined: Sun Jan 10, 2016 9:36 pm

Re: SSH connection refused after reboot (raspberry pi)

Postby WarheadsSE » Mon Jan 11, 2016 12:26 pm

Do you have a non-root users on that machine?

You've likely got bit by the change of the default settings that disables root login over without an ssh key.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: SSH connection refused after reboot (raspberry pi)

Postby paintedocean » Tue Jan 12, 2016 7:32 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'D')o you have a non-root users on that machine?

You've likely got bit by the change of the default settings that disables root login over without an ssh key.


Yes I had also non-root users (that was how I usually connected, by the way), also not working.

It’s not clear what happened. I had the system configured to me used as a “timecapsule” for backup of my macbook (which was based on netatalk) on an USB hard drive (from Western Digital).

I don’t know in which order the things happened, fact is that the USB HDD seems not to work anymore (blinking light, motor seems not to be spinning).

I don’t know if a HDD failure somehow compromised the system (please note that Archlinux resides on the MMC, not on the HDD). Maybe the apfd service not finding the device caused troubles?

Fact is, Raspberry Pi works again after reinstalling the OS from scratch, but the HDD is not seen in /dev

I dumped the old system to a file using dd, so I could mount the image to check the content: can you suggest me where to look to understand what happened?
paintedocean
 
Posts: 2
Joined: Sun Jan 10, 2016 9:36 pm


Return to General

Who is online

Users browsing this forum: No registered users and 11 guests