From 67b19dd765e5349ed336d543ae646f4d34c4ccff Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 20 May 2022 13:35:18 +0200 Subject: [PATCH] Fix the SSH command --- scripts/remote_switch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remote_switch.sh b/scripts/remote_switch.sh index c069278..016316d 100755 --- a/scripts/remote_switch.sh +++ b/scripts/remote_switch.sh @@ -34,7 +34,7 @@ do continue fi echo "reboot $fqdn" - ssh -i rsa_ey 'sudo reboot' + ssh -i $rsa_key $fqdn 'sudo reboot' echo echo done