Remove SSH keys and generate them instead

This commit is contained in:
Aleksandr Didenko
2016-06-16 12:29:08 +02:00
parent 62e98bd4b0
commit cdfbcc1046
5 changed files with 15 additions and 29 deletions

5
ssh-keygen.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
mkdir -p ssh
if ! [ -f ssh/id_rsa ] ; then
ssh-keygen -N '' -t rsa -f ssh/id_rsa && cp ssh/id_rsa.pub ssh/authorized_keys
fi