[SOLVED] Can't ssh after upgrade

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

[SOLVED] Can't ssh after upgrade

Postby mpadilla2 » Thu Nov 20, 2014 2:35 am

I'm working on a friend's installation. I upgraded the alarm installation. Made sure that systemd-networkd was enabled and that I had a eth0.network file in /etc/systemd/network with the proper information. Everything went smoothly. I can ping the ip and get a reply. However, I am no longer able to ssh back into it. Here is what I get:

$this->bbcode_second_pass_code('', 'ssh -vvvvv -p 25300 shatewie@192.168.1.253
OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1j 15 Oct 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.253 [192.168.1.253] port 25300.
debug1: connect to address 192.168.1.253 port 25300: Connection refused
ssh: connect to host 192.168.1.253 port 25300: Connection refused
')

I've tried clearing known_hosts on the client. I have tried attaching the drive on another plug e02, chrooting in and enabling sshd.socket and running ssh-keygen but nothing has helped. I ran systemctl list-unit-files while chrooted and sshd.socket is enabled. I did change the ListenStream setting in the unit file to 25300. I'm putting together a serial cable to try that next. Before I try that does anyone have any other suggestions? I'm sure there is a way to get this back just not sure what to try next.

Edit: the router has 25300 port forwarded properly
Last edited by mpadilla2 on Thu Nov 20, 2014 6:00 pm, edited 1 time in total.
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Can't ssh after upgrade

Postby pepedog » Thu Nov 20, 2014 9:41 am

Which armv5 is this, and what kernel version?
Don't assume same IP address allocated, btw
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Can't ssh after upgrade

Postby mpadilla2 » Thu Nov 20, 2014 12:53 pm

I set up a static ip so it is the same ip. As I said I am able to ping it and it replies so that part is working. Here is my working static ip setup for systemd-networkd:

$this->bbcode_second_pass_code('', '[Match]
Name=eth0

[Network]
Address=192.168.1.253/24
Gateway=192.168.1.2
DNS=8.8.8.8
')

Any suggestions on the nonworking ssh?
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Can't ssh after upgrade

Postby WarheadsSE » Thu Nov 20, 2014 1:55 pm

Did you actually change the port to 25300?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't ssh after upgrade

Postby mpadilla2 » Thu Nov 20, 2014 2:02 pm

Update:
today I chrooted in again while the drive was connected to another working alarm on pogo e02. I enabled telnet.socket. Reinstalled the drive to the other pogo and started up. Attemped to telnet in and get connection refused. So it seems something is preventing telnet and ssh from starting up. Researching further....but any suggestions at this point would be greatly appreciated.
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Can't ssh after upgrade

Postby mpadilla2 » Thu Nov 20, 2014 2:46 pm

sshd_config is configured to listen on port 25300. It was configured this way before the upgrade and worked fine. Only after the upgrade it is not working. But telnet is also not working so something is preventing both from starting up it seems. Any ideas?
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Can't ssh after upgrade

Postby mpadilla2 » Thu Nov 20, 2014 3:24 pm

Figured it out

I chrooted in and ran journalctl.

The log showed it was expecting to mount the second hard drive. When that hard drive was not found it would fail and shutdown all services. I commented out the second drive in /etc/fstab and started it up. I was then able to ssh in successfully.

My question is why such a catastrophic failure just because the second drive is missing? It is only storage not a rootfs.
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm

Re: Can't ssh after upgrade

Postby Socaltom » Thu Nov 20, 2014 5:49 pm

Yes,
That's a problem I've run into before.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Can't ssh after upgrade

Postby pepedog » Thu Nov 20, 2014 5:52 pm

Perhaps option nofail in fstab might help?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Can't ssh after upgrade

Postby mpadilla2 » Thu Nov 20, 2014 5:56 pm

Thanks pepedog! Added it.
mpadilla2
 
Posts: 44
Joined: Sat Mar 08, 2014 6:59 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 5 guests