Advertisement

10.26.2007 at 07:42AM PDT, ID: 22920318
[x]
Attachment Details

Automating a login and single command to my firewall using Putty/Plink OR Telnet?

Asked by grjitdept in SSH / Telnet Software, Miscellaneous Networking, Networking Hardware Firewalls

Tags: putty, plink, login, command

Hi,

I need to write a script that connects to my firewall (a Netscreen 25) and sends it a single command (a manual DNS refresh). I've been guided so far to use Putty/Plink, but have got stuck about how to proceed.

I plan to connect using SSH or Telnet protocol. Using SSH with plink, I can pass the username and password and hostname as parameters in the command line, but also want to pass a single command as well, e.g.

plink -ssh HOSTNAME - l LOGIN - pw PASSWORD     .......SINGLE LINE COMMAND HERE....

My question is, is this possible? Or do I haave to get into the realms of linking to external files of commands, or automating a session using putty etc? I'm after a simple quick solution for this!

ThanksStart Free Trial
[+][-]10.26.2007 at 07:49AM PDT, ID: 20156002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.26.2007 at 08:01AM PDT, ID: 20156135

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.26.2007 at 08:44AM PDT, ID: 20156578

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SSH / Telnet Software, Miscellaneous Networking, Networking Hardware Firewalls
Tags: putty, plink, login, command
Sign Up Now!
Solution Provided By: Darkstriker69
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.26.2007 at 01:22PM PDT, ID: 20158741

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.29.2007 at 04:33AM PDT, ID: 20168590

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628