mirror of
https://github.com/KrystianD/mikrotik_configurator.git
synced 2025-06-20 17:47:44 +02:00
added setting correct file mode for generated host files
This commit is contained in:
parent
6681a974ff
commit
d7fe5c1034
@ -2,3 +2,9 @@ ssh-keygen -N "" -f ssh_host_private_key_dsa -t dsa -m pkcs8
|
||||
ssh-keygen -N "" -f ssh_host_private_key_rsa -t rsa -m pkcs8
|
||||
ssh-keygen -e -f ssh_host_private_key_rsa.pub -m pkcs8 > ssh_host_private_key_rsa.pub.tmp
|
||||
mv ssh_host_private_key_rsa.pub.tmp ssh_host_private_key_rsa.pub
|
||||
|
||||
chmod 600 \
|
||||
ssh_host_private_key_dsa \
|
||||
ssh_host_private_key_dsa.pub \
|
||||
ssh_host_private_key_rsa \
|
||||
ssh_host_private_key_rsa.pub
|
||||
|
Loading…
x
Reference in New Issue
Block a user