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:erl->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
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:erl->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