Anyone have any sample code for using Net:SSH to connect to and run a sho command?
Net:SSH does not seem to have a way to pass a password to log in and expects a certificate. On my test router I SSH to it and it asks me for a username and password so I do not think Net:SSH will work. I also cannot use Net:SSH:
erl as I am using a windows system.
Anyone have any command line examples that work? I dug this up on this forum:
But it does not work I am still prompted for a password.
Any ideas?
Thanks,
Nick
If at first you don't succeed, don't try skydiving.
Net:SSH does not seem to have a way to pass a password to log in and expects a certificate. On my test router I SSH to it and it asks me for a username and password so I do not think Net:SSH will work. I also cannot use Net:SSH:
Anyone have any command line examples that work? I dug this up on this forum:
Code:
my $password = 'password';
my $user = 'user_a';
my $ip = '100.100.201.22';
my $results=`"(echo $password) | ssh $user@$ip"`;
But it does not work I am still prompted for a password.
Any ideas?
Thanks,
Nick
If at first you don't succeed, don't try skydiving.