aboutsummaryrefslogtreecommitdiff
path: root/scripts/local/rotate-ssh-keys.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-13 11:17:45 -0300
committerEuAndreh <eu@euandre.org>2019-06-13 11:17:45 -0300
commit353e1f832c73442645f4e1024ff113c2a7134290 (patch)
tree07e74be95840c9a426f8bbddf6c2d26f7e57c6bf /scripts/local/rotate-ssh-keys.sh
parentTODOs.org (diff)
downloadserver-353e1f832c73442645f4e1024ff113c2a7134290.tar.gz
server-353e1f832c73442645f4e1024ff113c2a7134290.tar.xz
Specify email address when rotating keys
Diffstat (limited to 'scripts/local/rotate-ssh-keys.sh')
-rwxr-xr-xscripts/local/rotate-ssh-keys.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/local/rotate-ssh-keys.sh b/scripts/local/rotate-ssh-keys.sh
index 337f351..323d27c 100755
--- a/scripts/local/rotate-ssh-keys.sh
+++ b/scripts/local/rotate-ssh-keys.sh
@@ -4,8 +4,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../../
rm -f ./secrets/ssh/*
-ssh-keygen -t rsa -b 4096 -q -N '' -f ./secrets/ssh/vps-box-client
-ssh-keygen -t rsa -b 4096 -q -N '' -f ./secrets/ssh/vps-box-server
+ssh-keygen -t rsa -b 4096 -q -N '' -f ./secrets/ssh/vps-box-client -C "${SSH_EMAIL}"
+ssh-keygen -t rsa -b 4096 -q -N '' -f ./secrets/ssh/vps-box-server -C "${SSH_EMAIL}"
git add ./secrets/ssh/
git commit -m "Script: rotate SSH keys"