Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Issues with automatic SSH script for Sonicwall firewall

  • Please log in to reply
2 replies to this topic

#1 MSgherzi


  • Members
  • 1 posts
  • Local time:01:56 AM

Posted 04 March 2016 - 05:48 PM

Hey guys,


First post here and I'm having an issue I'm hoping someone can help with.


I am trying to create a batch file that uses putty to automatically log into and reboot our Sonicwall firewalls on a scheduled task. I'm testing this with our NSA 3600 first.


When I use the CLI "putty.exe -ssh -l admin -pw password" It brings me to the console, logs me in as admin, but it still asks me for my password even though it's in the syntax. Everything is followed per putty's documentation.


If I try adding "-m commands.txt" and add the password there as a command line, it just disconnects with a fatal error.



Any suggestions?





Attached Files

BC AdBot (Login to Remove)


#2 5n34k


  • Members
  • 1 posts
  • Gender:Male
  • Local time:05:56 AM

Posted 01 April 2016 - 10:39 AM

The syntax should be as follows:


putty.exe -ssh admin@ -pw password

#3 imort


  • Members
  • 11 posts
  • Local time:03:56 PM

Posted 14 June 2016 - 08:08 AM

Any suggestions?


Try using the 'plink' utility

It's a command-line utility which is used for login to the server and execute batch of the commands from command line or file.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users