* [PATCH] openssh: Remove temporary keys before generating new ones
@ 2021-06-25 6:52 Asfak Rahman
0 siblings, 0 replies; 2+ messages in thread
From: Asfak Rahman @ 2021-06-25 6:52 UTC (permalink / raw)
To: poky; +Cc: Asfak Rahman
Key generation may wait for user input, due to the existence of
temporary keys resulting from power interruption in the first boot.
This prevents users from login via ssh.
Signed-off-by: Asfak Rahman <asfakr@outlook.com>
---
meta/recipes-connectivity/openssh/openssh/sshd_check_keys | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_check_keys b/meta/recipes-connectivity/openssh/openssh/sshd_check_keys
index 1931dc7153..ef117de897 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_check_keys
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_check_keys
@@ -6,6 +6,7 @@ generate_key() {
local DIR="$(dirname "$FILE")"
mkdir -p "$DIR"
+ rm -f ${FILE}.tmp
ssh-keygen -q -f "${FILE}.tmp" -N '' -t $TYPE
# Atomically rename file public key
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] openssh: Remove temporary keys before generating new ones
@ 2021-07-16 6:32 Asfak Rahman
0 siblings, 0 replies; 2+ messages in thread
From: Asfak Rahman @ 2021-07-16 6:32 UTC (permalink / raw)
To: poky; +Cc: armccurdy, richard.purdie, Asfak Rahman
Key generation may wait for user input, due to the existence of
temporary keys resulting from power interruption in the first boot.
This prevents users from login via ssh.
Signed-off-by: Asfak Rahman <asfakr@outlook.com>
---
PING: could someone look into this patch please
meta/recipes-connectivity/openssh/openssh/sshd_check_keys | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_check_keys b/meta/recipes-connectivity/openssh/openssh/sshd_check_keys
index 1931dc7153..ef117de897 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_check_keys
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_check_keys
@@ -6,6 +6,7 @@ generate_key() {
local DIR="$(dirname "$FILE")"
mkdir -p "$DIR"
+ rm -f ${FILE}.tmp
ssh-keygen -q -f "${FILE}.tmp" -N '' -t $TYPE
# Atomically rename file public key
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-16 6:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 6:52 [PATCH] openssh: Remove temporary keys before generating new ones Asfak Rahman
2021-07-16 6:32 Asfak Rahman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.