We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c9d6a commit d19d9f4Copy full SHA for d19d9f4
files/sshd/host-ssh-keygen.sh
@@ -1,10 +1,8 @@
1
#!/bin/bash
2
3
+set -e
4
+
5
[ -r /etc/ssh/ssh_host_rsa_key ] || {
6
rm -f /etc/ssh/ssh_host_*_key*
7
/usr/bin/ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key
- /usr/bin/ssh-keygen -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key
- /usr/bin/ssh-keygen -t rsa1 -N '' -f /etc/ssh/ssh_host_key
8
- /usr/bin/ssh-keygen -t ecdsa -N '' -f /etc/ssh/ssh_host_ecdsa_key
9
- /usr/bin/ssh-keygen -t ed25519 -N '' -f /etc/ssh/ssh_host_ed25519_key
10
}
0 commit comments