File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
docker/root/etc/s6/openssh Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -24,23 +24,22 @@ if [ ! -f /data/ssh/ssh_host_ecdsa_key ]; then
24
24
ssh-keygen -t ecdsa -b 256 -f /data/ssh/ssh_host_ecdsa_key -N " " > /dev/null
25
25
fi
26
26
27
- if [ -f /data/ssh/ssh_host_ed25519_cert ]; then
27
+ if [ -e /data/ssh/ssh_host_ed25519_cert ]; then
28
28
SSH_ED25519_CERT=${SSH_ED25519_CERT:- " /data/ssh/ssh_host_ed25519_cert" }
29
29
fi
30
30
31
- if [ -f /data/ssh/ssh_host_rsa_cert ]; then
31
+ if [ -e /data/ssh/ssh_host_rsa_cert ]; then
32
32
SSH_RSA_CERT=${SSH_RSA_CERT:- " /data/ssh/ssh_host_rsa_cert" }
33
33
fi
34
34
35
- if [ -f /data/ssh/ssh_host_ecdsa_cert ]; then
35
+ if [ -e /data/ssh/ssh_host_ecdsa_cert ]; then
36
36
SSH_ECDSA_CERT=${SSH_ECDSA_CERT:- " /data/ssh/ssh_host_ecdsa_cert" }
37
37
fi
38
38
39
- if [ -f /data/ssh/ssh_host_dsa_cert ]; then
39
+ if [ -e /data/ssh/ssh_host_dsa_cert ]; then
40
40
SSH_DSA_CERT=${SSH_DSA_CERT:- " /data/ssh/ssh_host_dsa_cert" }
41
41
fi
42
42
43
-
44
43
if [ -d /etc/ssh ]; then
45
44
SSH_PORT=${SSH_PORT:- " 22" } \
46
45
SSH_LISTEN_PORT=${SSH_LISTEN_PORT:- " ${SSH_PORT} " } \
You can’t perform that action at this time.
0 commit comments