문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top