Skip to content

Commit bb3c94b

Browse files
zeripathsilverwind
andauthored
Update docker/root/etc/s6/openssh/setup
Co-authored-by: silverwind <[email protected]>
1 parent 32238a3 commit bb3c94b

File tree

1 file changed

+4
-5
lines changed
  • docker/root/etc/s6/openssh

1 file changed

+4
-5
lines changed

docker/root/etc/s6/openssh/setup

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,22 @@ if [ ! -f /data/ssh/ssh_host_ecdsa_key ]; then
2424
ssh-keygen -t ecdsa -b 256 -f /data/ssh/ssh_host_ecdsa_key -N "" > /dev/null
2525
fi
2626

27-
if [ -f /data/ssh/ssh_host_ed25519_cert ]; then
27+
if [ -e /data/ssh/ssh_host_ed25519_cert ]; then
2828
SSH_ED25519_CERT=${SSH_ED25519_CERT:-"/data/ssh/ssh_host_ed25519_cert"}
2929
fi
3030

31-
if [ -f /data/ssh/ssh_host_rsa_cert ]; then
31+
if [ -e /data/ssh/ssh_host_rsa_cert ]; then
3232
SSH_RSA_CERT=${SSH_RSA_CERT:-"/data/ssh/ssh_host_rsa_cert"}
3333
fi
3434

35-
if [ -f /data/ssh/ssh_host_ecdsa_cert ]; then
35+
if [ -e /data/ssh/ssh_host_ecdsa_cert ]; then
3636
SSH_ECDSA_CERT=${SSH_ECDSA_CERT:-"/data/ssh/ssh_host_ecdsa_cert"}
3737
fi
3838

39-
if [ -f /data/ssh/ssh_host_dsa_cert ]; then
39+
if [ -e /data/ssh/ssh_host_dsa_cert ]; then
4040
SSH_DSA_CERT=${SSH_DSA_CERT:-"/data/ssh/ssh_host_dsa_cert"}
4141
fi
4242

43-
4443
if [ -d /etc/ssh ]; then
4544
SSH_PORT=${SSH_PORT:-"22"} \
4645
SSH_LISTEN_PORT=${SSH_LISTEN_PORT:-"${SSH_PORT}"} \

0 commit comments

Comments
 (0)