my $sftp = new Net::SFTP::Foreign(ssh_cmd => 'C:/path/to/putty.exe', host => ...); ...