in reply to SFTP with RSA

try using Net::SFTP::Foreign instead.