mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Add empty password to ssh keys
This commit is contained in:
parent
125d105403
commit
9c6eb31358
1 changed files with 2 additions and 2 deletions
|
@ -130,10 +130,10 @@ if [ ! -f "$userConfFinalPath" ]; then
|
||||||
|
|
||||||
# Generate unique ssh keys for this container, if needed
|
# Generate unique ssh keys for this container, if needed
|
||||||
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
|
||||||
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key < /dev/null
|
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key < /dev/null
|
ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N ''
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue