aboutsummaryrefslogtreecommitdiff
path: root/scripts/local/rotate-ssh-keys.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/local/rotate-ssh-keys.sh')
-rwxr-xr-xscripts/local/rotate-ssh-keys.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/local/rotate-ssh-keys.sh b/scripts/local/rotate-ssh-keys.sh
new file mode 100755
index 0000000..337f351
--- /dev/null
+++ b/scripts/local/rotate-ssh-keys.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+set -Eeuo pipefail
+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
+
+git add ./secrets/ssh/
+git commit -m "Script: rotate SSH keys"