Questions tagged [perlnetssh]
19 questions
0
votes
1 answer
Unable to run perl script for ssh login to Windows server (using Net::SSH::Perl) from crontab
I have a Perl script which is doing remote login to the Windows server via the Net::SSH::Perl module.
If I run the script manually from my shell, it gives no error. Running from a crontab, however, it connects properly to the remote Windows server…

rkdevs
- 58
- 7
0
votes
1 answer
Using Net::SSH::Perl with public key
I want to gain access to an AWS Instance using Perl. I can access the instance from commandline like this:
ssh -i my-key-pair.pem ubuntu@ec2-**-***-***-***.us-west-2.compute.amazonaws.com
but my code doesn't work:
#! usr/bin/perl
use…

arikan
- 893
- 9
- 18
0
votes
1 answer
How to use downloaded Net::SSH2 module in Perl?
I have downloaded Net-SSH2-0.43 to be able to use Net::SSH2 Perl module. But I don't know what I need to do after that, just include paths or something else. Please help.

Gayane
- 627
- 1
- 11
- 23
0
votes
1 answer
Net::SSH2 authenticate using public key
I'm trying to use Net::SSH2 to execute commands on a remote machine. However, I do not know how to authenticate by using a public key. The documentation mentions this method:
auth_publickey ( username, public key, private key [, password ]…

srchulo
- 5,143
- 4
- 43
- 72