sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby Sagittarius » Sat Feb 16, 2019 11:04 am

I run 3 dockstars with archlinux (practical for mpd/lighttpd server, tvheadend server...)

They're diskless and booting via nfs since years now. Thanks archlinuxarm !

From the kernel update linux-kirkwood-dt-4.20.8-1 as well as update of these packages:
- systemd-240.95-2
- systemd-libs-240.95-2
- systemd-sysvcompat-240.95-2

ssh to the dockstars gives a broken pipe error:

debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/pascal/.ssh/id_rsa RSA SHA256:dBYbLXtudF2KW4vCyDsJhA1aHU46B9mGYWH5b3un3+U
debug1: Server accepts key: /home/pascal/.ssh/id_rsa RSA SHA256:dBYbLXtudF2KW4vCyDsJhA1aHU46B9mGYWH5b3un3+U
debug1: Authentication succeeded (publickey).
Authenticated to 192.168.0.101 ([192.168.0.101]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
packet_write_wait: Connection to 192.168.0.101 port 22: Broken pipe

I've tried to ssh forcing password instead of key (ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no -o ServerAliveInterval=15 -o ServerAliveCountMax=3 192.168.0.101)with no success either (broken pipe).
Dockstar / GoFlexNet booting on NFS / Odroid C1+ / Odroid C2
Sagittarius
 
Posts: 61
Joined: Mon Nov 14, 2011 9:21 pm
Location: France

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby Sagittarius » Sat Feb 16, 2019 12:42 pm

I'm investigating, I think it's related to openssl-cryptodev for I use normally cryptodev-dkms to get hardware encryption.
Dockstar / GoFlexNet booting on NFS / Odroid C1+ / Odroid C2
Sagittarius
 
Posts: 61
Joined: Mon Nov 14, 2011 9:21 pm
Location: France

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby Sagittarius » Sat Feb 16, 2019 6:33 pm

Found a workaround:

- I deleted the cryptodev module on the NFS server then I had back an SSH acces ;

- an finally I removed openssl-crytptodev (replaced by openssl) as well as cryptodev-dkms).

Obviously there is a problem with openssl-cryptodev/cryptodev module.
Dockstar / GoFlexNet booting on NFS / Odroid C1+ / Odroid C2
Sagittarius
 
Posts: 61
Joined: Mon Nov 14, 2011 9:21 pm
Location: France

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby waxhell » Tue Feb 19, 2019 3:04 pm

This is what showed up for me when I did a pacman -Syu today. Your suspicion is correct with cryptodev causing issues.

Error! There are no instances of module: cryptodev
1.9 located in the DKMS tree.
error: command failed to execute correctly
(55/92) upgrading cryptodev-dkms [######################] 100%

Creating symlink /var/lib/dkms/cryptodev/1.10/source ->
/usr/src/cryptodev-1.10

DKMS: add completed.
awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
wc: write error
/usr/bin/dkms: line 1252: ((: < 2: syntax error: operand expected (error token i s "< 2")

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area..........
make -j1 KERNELRELEASE=4.19.8-1-ARCH -s build KERNEL_DIR=/lib/modules/4.19.8-1-A RCH/build.....................................
cleaning build area........

DKMS: build completed.

cryptodev.ko:
Running module version sanity check.
awk: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
wc: write error
- Original module
- No original module exists within this kernel
- Installation
- Installing to /usr/lib/modules/4.19.8-1-ARCH/extra/

depmod.....
waxhell
 
Posts: 4
Joined: Sun Jul 23, 2017 7:11 pm

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby waxhell » Tue Feb 19, 2019 3:12 pm

Trying to re-install cryptodev-dkms gives me the following:

[alarm@alarm ~]$ sudo pacman -S cryptodev-dkms
warning: cryptodev-dkms-1.10-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) cryptodev-dkms-1.10-1

Total Installed Size: 0.30 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [################################################################] 100%
(1/1) checking package integrity [################################################################] 100%
(1/1) loading package files [################################################################] 100%
(1/1) checking for file conflicts [################################################################] 100%
(1/1) checking available disk space [################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove cryptodev/1.10 -k 4.20.10-1-ARCH
:: Processing package changes...

-------- Uninstall Beginning --------
Module: cryptodev
Version: 1.10
Kernel: 4.19.8-1-ARCH (armv5tel)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

cryptodev.ko:
- Uninstallation
- Deleting from: /usr/lib/modules/4.19.8-1-ARCH/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 1.10
completely from the DKMS tree.
------------------------------
Done.
(1/1) reinstalling cryptodev-dkms [################################################################] 100%

Creating symlink /var/lib/dkms/cryptodev/1.10/source ->
/usr/src/cryptodev-1.10

DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.19.8-1-ARCH cannot be found at
/usr/lib/modules/4.19.8-1-ARCH/build or /usr/lib/modules/4.19.8-1-ARCH/source.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/2) Install DKMS modules
==> dkms install cryptodev/1.10 -k 4.20.10-1-ARCH
(2/2) Arming ConditionNeedsUpdate...
waxhell
 
Posts: 4
Joined: Sun Jul 23, 2017 7:11 pm

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby pachulo » Sun Mar 03, 2019 12:13 am

$this->bbcode_second_pass_quote('Sagittarius', 'F')ound a workaround:

- I deleted the cryptodev module on the NFS server then I had back an SSH acces ;

- an finally I removed openssl-crytptodev (replaced by openssl) as well as cryptodev-dkms).

Obviously there is a problem with openssl-cryptodev/cryptodev module.


Was hit by this and used the workaround by Sagittarius to be able to access my Pogoplugv4 again.

Swapped openssl-cryptodev for openssl with:
$this->bbcode_second_pass_code('', '$ pacman -S openssl')
And removed cryptodev-dkms with:
$this->bbcode_second_pass_code('', '$ pacman -R cryptodev-dkms')

Thanks a lot!
pachulo
 
Posts: 6
Joined: Tue Jul 31, 2018 9:55 pm

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby Sergeanter » Wed Mar 13, 2019 8:11 am

So I guess I am having the same issue with 5.0 version of the kernel. I kept older versions of openssl-cryptodev and openssh that used to work but decided to give this another try after kernel got a major update. Alas...
Sergeanter
 
Posts: 82
Joined: Wed Oct 02, 2013 5:14 am

Re: sshd broken linux-kirkwood-dt-4.20.8-1/systemd-240.95-2

Postby moonman » Wed Mar 13, 2019 4:32 pm

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests