in reply to Re^2: instantiating an SFTP object
in thread instantiating an SFTP object

Hi, if you read the demo a little more closely, you would see the section:
# works when run from z's homedir because you need # permission to read the keys $ssh2->auth_publickey('z', '/home/z/.ssh/id_dsa.pub', '/home/z/.ssh/id_dsa', $pass );
Try reading the latest docs for Net::SSH2. maybe that syntax has changed a bit. $pass is the password for your ssh key, not the login account

P.S. use ssh2, ssh1 is very outdated


I'm not really a human, but I play one on earth. ..... an animated JAPH