I am trying to add a shell script to one of my rules that logs into my raspberry pi using ssh and gives a "shutdown -r" command.
I have tried several options but none seem to work. Since I do not see any errors either I can't figure out what is going wrong.
- Code: Select all
ssh pi@192.168.178.91 '/bin/bash -c "sudo shutdown -r now"'
USERNAME="username"
PASSWORD="password"
- Code: Select all
ssh pi@192.168.178.91
/bin/bash -c "sudo shutdown -r now"
(I don't need a username and pass to login.)
- Code: Select all
ssh pi@192.168.178.91
USERNAME="username"
PASSWORD="password"
'/bin/bash -c "sudo shutdown -r now"'
can someone give me a hint?