Thread

Posted on Thu May 17 02:00:24 2007 by calu
ssh-dss I want to use ssh-rsa
I have been trying to use the SFTP module by using RSA key pairs, but it always defaults to dss. Any ideas? Thanks
Direct Responses: 5653 | Write a response
Posted on Fri Jul 6 22:42:28 2007 by shaddai in response to 5155
Re: ssh-dss I want to use ssh-rsa
Like this:

my $sftp = Net::SFTP->new($server, (user=>$user, ssh_args => [identity_files => ['/home/yourusername/.ssh/id_rsa']]));

Be sure to pass the correct path to your RSA key.
Write a response