I want to set and ssh tunnel between my windows machine and EC2 machine, I want to use perl for that, according to this documentation , I have to use ./driver.pl script which I couldn't find.
I use this string to ssh to my machine using command line.
ssh -2 -p 22 username@id-address -i keyfile.ssh -L p8600/Localhost/3306
I tried this from this post but I get this error:
my $ssh_pid= open("ssh -2 -p 22 username@id-address -i keyfile.ssh -L p8600/Localhost/3306 |") or die;
Can't use string ("ssh -2 -p 22 username@id-address"...) as a symbol ref while " strict refs" in use at .\\start.pl line 39. D:\\DESKTOP\\JEFF_SHIH\\MAPPING_FILE_GENERATOR>
how can I translate the above string to perl or fix the string above to get ride of the error. I installed Net::SSH::Tunnel
Thanks!
Use Net::SSH::Perl
to avoid tricky (on Windows!) dependencies to ssh-binaries. This module is written completely in Perl, so it should work on any platform. Net::SSH::Perl
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.