mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bruno Thomsen <bth@kamstrup.com>
To: ptxdist@pengutronix.de
Cc: bth@kamstrup.com
Subject: [ptxdist] [PATCHv2] dropbear: add authorized key directory
Date: Mon, 13 Jul 2015 16:20:40 +0200	[thread overview]
Message-ID: <1436797240-20194-1-git-send-email-bth@kamstrup.com> (raw)

This directory (/root/.ssh) is needed when doing ssh login with pre-shared keys,
and it must be configured with correct permissions otherwise they will be rejected.

One-line psk setup (x.x.x.x = target):
cat ~/.ssh/id_ecdsa.pub | ssh root@x.x.x.x "cat - >> ~/.ssh/authorized_keys"

v2:
Commit message cleanup.
Wrongly included OpenSSH one-liner; changed ed25519 to ecdsa.

Signed-off-by: Bruno Thomsen <bth@kamstrup.com>
---
 rules/dropbear.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/dropbear.make b/rules/dropbear.make
index a659114..9a510a4 100644
--- a/rules/dropbear.make
+++ b/rules/dropbear.make
@@ -316,6 +316,7 @@ endif
 endif
 
 	@$(call install_copy, dropbear, 0, 0, 0755, $(PTXCONF_DROPBEAR_KEY_DIR))
+	@$(call install_copy, dropbear, 0, 0, 0600, /root/.ssh)
 
 	@$(call install_finish, dropbear)
 
-- 
2.1.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2015-07-13 12:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 14:20 Bruno Thomsen [this message]
2015-07-16 13:03 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1436797240-20194-1-git-send-email-bth@kamstrup.com \
    --to=bth@kamstrup.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox