2022-12-21 16:05:10 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-01-19 01:18:14 -05:00
|
|
|
if [ ! -d "keys" ]
|
|
|
|
then
|
|
|
|
mkdir keys
|
|
|
|
chmod 700 keys
|
|
|
|
cd keys
|
2022-12-21 16:05:10 -05:00
|
|
|
|
2023-01-19 01:18:14 -05:00
|
|
|
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
|