briandfoy / net-ssh-perl

Development on the Net::SSH::Perl module to support latest ciphers, key exchange mechanisms, etc.
Other
4 stars 1 forks source link

Add support for ProxyCommand option. #28

Open briandfoy opened 1 year ago

briandfoy commented 1 year ago

This ticket was imported from rt.cpan.org 57656

Hi,

I have ProxyCommand configuration in my .ssh/config file to connect to a host behind a firewall through an ssh tunnel.

It looks something like this

Host *.hostbehindfirewall.com ProxyCommand /usr/bin/ssh -p 9302 localhost /usr/local/bin/nc %h %p

Where port 9302 is forwarded to another host behind the firewall.

Currently, Net::SSH::Perl does not honour this configuration and tries to connect to host1.hostbehindfirewall.com directly and times out. Is there any way this feature can be incorporated in Net::SSH::Perl?

Thanks, -Phirince