diff options
author | Glen Huang <me@glenhuang.com> | 2023-04-13 17:55:02 +0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2023-04-25 07:23:01 +0300 |
commit | e36a55c9ed293bd608d18918cdda8dceffad9d96 (patch) | |
tree | 3bfa8dbfa507f463acd4b7220343d5fb59f94fd0 /net/openssh/Makefile | |
parent | 7016a4546b425508489fcd596fb8d8f4459ce6e3 (diff) |
openssh: preserve authorized_keys
The root user is usually the user that clients ssh into with, so in most
cases its authorized_keys determines what clients are allowed to ssh
into this device. Without preserving this file, they could potentially
be locked out after upgrading.
Signed-off-by: Glen Huang <me@glenhuang.com>
Diffstat (limited to 'net/openssh/Makefile')
-rw-r--r-- | net/openssh/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openssh/Makefile b/net/openssh/Makefile index 66c32f7ba..06cba0afe 100644 --- a/net/openssh/Makefile +++ b/net/openssh/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openssh PKG_VERSION:=9.3p1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \ @@ -105,6 +105,7 @@ define Package/openssh-server/conffiles /etc/ssh/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub +/root/.ssh/authorized_keys endef define Package/openssh-server-pam |