##// END OF EJS Templates
Cleanup code by spliting files
Cleanup code by spliting files

Fichier de la dernière révision:

r47:a2923b42dbd0
r47:a2923b42dbd0
Show More
21-generate-ssh-keys.sh
8 lines | 338 B | application/x-sh | BashLexer
/ files / firstboot / 21-generate-ssh-keys.sh
Filip Pytloun
Cleanup code by spliting files
r47 logger -t "rc.firstboot" "Generating SSH host keys"
rm -f /etc/ssh/ssh_host_*
ssh-keygen -q -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -q -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -q -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
ssh-keygen -q -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
systemctl restart sshd