Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl::Net::SSH script login issues

Status
Not open for further replies.

npereira

Technical User
Oct 16, 2002
35
0
0
CA
Hi all,

Newbie...

trying to setup a ssh perl script to login to a device and execute a command.

1) The device has 2 levels of password, meaning when you login with :

my $ssh = Net::SSH::perl->new($server);
$ssh->login($username, $password);

the system ask's for a second password that I have to pass to it. How do I do this?

2) How can I log to text file everything that happens so I can get a better view as to what is going on in the backend of the script?



Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top