File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,7 @@ if [ ! -f "$userConfFinalPath" ]; then
7171
7272 # Generate unique ssh keys for this container, if needed
7373 if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
74- ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ' '
75- fi
76- if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
77- ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N ' '
78- fi
79-
80- # Restrict access from other users
81- chmod 600 /etc/ssh/ssh_host_ed25519_key || true
82- chmod 600 /etc/ssh/ssh_host_rsa_key || true
74+ ssh-keygen -A
8375fi
8476
8577# Source custom scripts, if any
Original file line number Diff line number Diff line change 33Protocol 2
44HostKey /etc/ssh/ssh_host_ed25519_key
55HostKey /etc/ssh/ssh_host_rsa_key
6+ HostKey /etc/ssh/ssh_host_ecdsa_key
67
78# Faster connection
89# See: https://github.com/atmoz/sftp/issues/11
You can’t perform that action at this time.
0 commit comments