Thanks a lot, Travis!
Net::SSH didn't fit my bill, since it only allowed login through certificates as far as I could see.
However, in it's documentation was mentioned Net::SSH::Expect which worked like a charm!
Thanks for putting me on the right track, i'll see if I can give something back to...
Hi all!
I try to login through SSH using this code:
#!/usr/bin/perl -w
use Net::SSH::Perl;
my $remotehost = "host";
my $remoteport = "22";
my $remoteuser = "auser";
my $remotepassword = "apassword";
my $ssh = Net::SSH::Perl->new($remotehost);
$ssh->login($remoteuser, $remotepassword);
I then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.