diff options
Diffstat (limited to 'priv/make_keys.sh')
-rwxr-xr-x | priv/make_keys.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/priv/make_keys.sh b/priv/make_keys.sh index bd65aec..89464a8 100755 --- a/priv/make_keys.sh +++ b/priv/make_keys.sh @@ -1,9 +1,12 @@ #!/bin/sh -mkdir keys -chmod 700 keys -cd keys +if [ ! -d "keys" ] +then + mkdir keys + chmod 700 keys + cd keys -ssh-keygen -N "" -b 256 -t ecdsa -f ssh_host_ecdsa_key -ssh-keygen -N "" -b 1024 -t dsa -f ssh_host_dsa_key -ssh-keygen -N "" -b 2048 -t rsa -f ssh_host_rsa_key
\ No newline at end of file + ssh-keygen -N "" -b 256 -t ecdsa -f ssh_host_ecdsa_key + ssh-keygen -N "" -b 1024 -t dsa -f ssh_host_dsa_key + ssh-keygen -N "" -b 2048 -t rsa -f ssh_host_rsa_key +fi |