Skip to content

Commit

Permalink
[docker] drop the bits argument when generating an ed25519 key (#6504)
Browse files Browse the repository at this point in the history
From the man page of ssh-keygen:

  Ed25519 keys have a fixed length and the -b flag will be ignored.

[skip ci]

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
  • Loading branch information
das7pad authored and lafriks committed Apr 4, 2019
1 parent bf5af87 commit 3f4e2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/etc/s6/openssh/setup
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fi

if [ ! -f /data/ssh/ssh_host_ed25519_key ]; then
echo "Generating /data/ssh/ssh_host_ed25519_key..."
ssh-keygen -t ed25519 -b 4096 -f /data/ssh/ssh_host_ed25519_key -N "" > /dev/null
ssh-keygen -t ed25519 -f /data/ssh/ssh_host_ed25519_key -N "" > /dev/null
fi

if [ ! -f /data/ssh/ssh_host_rsa_key ]; then
Expand Down

0 comments on commit 3f4e2d9

Please sign in to comment.