Open sgrayban opened 10 months ago
Found a work around using expect.....
#!/usr/bin/expect -f
set timeout 30
spawn ssh admin@ntp
expect "clock.borgnet.us> "
sleep 5
send -- "reboot\r"
expect "expect eof"
correct, ssh with args is blocked (along with selected scp, etc...), though I get your point, it could be enhanced to run a single command
For some reason my ntp200 constantly loses its network every few days which requires me to pull the power to reboot it. So I wanted to simply reboot the the ntp server daily using crontab but when doing that I get this error
Why is this not allowed?? Seems to be a bug.