sshpiper/entrypoint.sh
Boshi Lian 740e31dffc
default to ed25519 (#111)
* s/rsa/ed25519/g

* s/rsakey/ed25519key/g

* ed25519 server key
2022-12-09 06:10:49 -08:00

12 lines
No EOL
277 B
Bash
Executable file

#!/bin/sh
set -eo pipefail
if [ -z "$SSHPIPERD_SERVER_KEY" ]; then
if [ ! -f /etc/ssh/ssh_host_ed25519_key ];then
ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_ed25519_key
fi
fi
PLUGIN=${PLUGIN:-workingdir}
exec /sshpiperd/sshpiperd /sshpiperd/plugins/$PLUGIN