Hello everybody :), I want to connect via ssh to the fortigate and make
a reboot. code: sshpass -p 'password' ssh admin@192.168.209.155 exec
reboot The fortigate expects y or n, how do I get the fortigate said y
or n?
Hi Ede, looks not good.the 'y' is not sending to the Fortinet. At the
moment I try it now with the expect command. code: spawn sshpass -p
"password" ssh admin@192.168.209.155 exec reboot expect "Do you want to
continue? (y/n)" {send_user "y\r"} expec...