You can use Net::SSH::Perl::WithSocks under the same terms as Perl itself.