I looked around and couldn't seem to find an answer to my questions. I am looking for a way to automate/script a set of SSH commands to export config files from our Sonicwall Routers. I have the sonicwall commands set but i am having trouble automating them. When I connect to one of our sonicwalls with SSH I get prompted with for a user. I type in the username and then get prompted again for a username and password. Once I enter the correct information, i can execute the export of the config. Below is an example of layout. Please let me know if anyone knows of a way to automate/script this. thanks in advance
User:%username%
User: %username%
Password: %password%
command: export preferences ftp %ftpserver% %ftpuser% %ftpPassword% backup.exp