File tree 1 file changed +9
-6
lines changed
docker/root/etc/s6/openssh
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,19 @@ if [ -e /data/ssh/ssh_host_ecdsa_cert ]; then
31
31
SSH_ECDSA_CERT=${SSH_ECDSA_CERT:- " /data/ssh/ssh_host_ecdsa_cert" }
32
32
fi
33
33
34
- if [ -e /data/ssh/ssh_host_ed25519-cert.pub ]; then
35
- SSH_ED25519_CERT=${SSH_ED25519_CERT:- " /data/ssh/ssh_host_ed25519-cert.pub" }
34
+ # In case someone wants to sign the `{keyname}.pub` key by `ssh-keygen -s ca -I identity ...` to
35
+ # make use of the ssh-key certificate authority feature (see ssh-keygen CERTIFICATES section),
36
+ # the generated key file name is `{keyname}-cert.pub`
37
+ if [ -e /data/ssh/ssh_host_ed25519_key-cert.pub ]; then
38
+ SSH_ED25519_CERT=${SSH_ED25519_CERT:- " /data/ssh/ssh_host_ed25519_key-cert.pub" }
36
39
fi
37
40
38
- if [ -e /data/ssh/ssh_host_rsa -cert.pub ]; then
39
- SSH_RSA_CERT=${SSH_RSA_CERT:- " /data/ssh/ssh_host_rsa -cert.pub" }
41
+ if [ -e /data/ssh/ssh_host_rsa_key -cert.pub ]; then
42
+ SSH_RSA_CERT=${SSH_RSA_CERT:- " /data/ssh/ssh_host_rsa_key -cert.pub" }
40
43
fi
41
44
42
- if [ -e /data/ssh/ssh_host_ecdsa -cert.pub ]; then
43
- SSH_ECDSA_CERT=${SSH_ECDSA_CERT:- " /data/ssh/ssh_host_ecdsa -cert.pub" }
45
+ if [ -e /data/ssh/ssh_host_ecdsa_key -cert.pub ]; then
46
+ SSH_ECDSA_CERT=${SSH_ECDSA_CERT:- " /data/ssh/ssh_host_ecdsa_key -cert.pub" }
44
47
fi
45
48
46
49
if [ -d /etc/ssh ]; then
You can’t perform that action at this time.
0 commit comments