Commit Graph

15 Commits

Author SHA1 Message Date
Michael Heimpold
9ef2d15c29 openssh: fix recursive key file removal
The -r option is not required here but should also not hurt,
since it was already tested, that $key is a file.
However, to express the intent of the command more clearly,
let's drop it.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2025-01-26 14:36:15 +01:00
Markus Gothe
69c29a5b26 openssh: Validate keys and regenerate if needed.
Imitate dropbear init.d-script and make sure we
don't end up with corrupt keys.

This can happen if we use a caching filesystem,
like 'ubifs', and the DUT is powered off during
boot-up.

Signed-off-by: Markus Gothe <markus.gothe@genexis.eu>
2025-01-25 11:09:48 +01:00
Erik Karlsson
3ac8092a39 openssh: fix killing of active sessions on shutdown
Starting with OpenSSH 9.8 sessions are handled by a separate binary
called sshd-session

Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu>
2025-01-25 10:53:24 +01:00
Erik Karlsson
7029af834c openssh: add respawn and reloading via signal
Configure the openssh server to respawn. Reload by sending SIGHUP

Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
2023-05-01 13:34:10 +03:00
Rucke Teg
fb113c5a70 openssh-server: change sshd.failsafe
There is no need to remove root password from /etc/shadow as the
password in the file is blank anyway in the failsafe mode.

Signed-off-by: Rucke Teg <rucketeg@protonmail.com>
2022-02-10 21:10:08 -08:00
Kyle Copperfield
45863b94ca openssh: add openwrt failsafe support
Adds failsafe support to the openssh package.
Roughly based on an earlier patch.

Ref: https://github.com/openwrt/openwrt/pull/865
Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.me>
2020-12-15 10:19:32 +00:00
Rosen Penev
8e77b50954 openssh: update to 8.3p1
Removed outdated options.

Small bashism fix in the init script.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-25 17:38:55 -07:00
Peter Wagner
45c0fde75d openssh: don't create ECDSA keys
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2020-04-06 10:18:50 +02:00
Peter Wagner
594a884c2d openssh: use quotes
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-03-22 20:29:52 +01:00
Peter Wagner
ba72d8d139 openssh: handle multiple ports and simplify init script
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2019-03-21 19:31:29 +01:00
Rosen Penev
6cb6666c97 ssh: Add umdns entry to the init script.
This is usefull for hosts to discover the ssh server, especially
on macOS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2017-08-15 21:44:15 -07:00
Mangix
ea119211b2 openssh: remove dsa and add ecdsa + ed25519 to initial keygen.
Signed-off by: Rosen Penev <rosenp@gmail.com>
2015-11-27 20:03:47 -08:00
Michael Heimpold
1c6580d05d openssh: provide an avahi service file
As discussed in #543, we can announce the SFTP service via Avahi
when sftp-server is installed.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2014-12-08 23:15:25 +01:00
John Crispin
d4042ec35e generic userid: use the new USERID api
recent changes in trunk allow us to specify the userid inside the openwrt makefile.
the info is stored int he meta data of the IPK contorl file and users are generated
by the new generic postinst trigger.

Signed-off-by: John Crispin <blogic@openwrt.org>
2014-10-08 03:45:30 +02:00
Peter Wagner
fe62d146fa openssh: import from packages
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-06-16 11:45:34 +02:00