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