in reply to Net::SSH::Perl::Auth problem

~/.ssh/authorized_keys is used by the server side to check the keys passed by the clients during authorization.

AFAIK, the identity_files argument should point to a file containing the list of files with the private keys used for authentication.

And BTW, check also Net::OpenSSH.

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl::Auth problem
by kdamundson (Initiate) on Mar 31, 2011 at 16:37 UTC
    OK, I don't think I understand how the module is authenticating.

    After you generate an RSA key, the private key, locally, is in id_rsa. You put the public key down in authorized_keys on the remote system.

    Is it the local identity file that I'm specifying in the call?....and the Net::SSH:Perl:Auth knows to try and authenticate to the authorized_keys file?

    I'll check out the Net::OpenSSH module, but if you could elaborate, that'd be great

    Thanks, Kyle
      OK, I don't think I understand how the module is authenticating.

      After you generate an RSA key, the private key, locally, is in id_rsa. You put the public key down in authorized_keys on the remote system.

      Is it the local identity file that I'm specifying in the call?....and the Net::SSH:Perl:Auth knows to try and authenticate to the authorized_keys file?

      I'll check out the Net::OpenSSH module, but if you could elaborate, that'd be great

      Thanks, Kyle
      Is it the local identity file that I'm specifying in the call?
      Yes, and reading Net::SSH::Perl docs, it seems you have to use something like...
      identity_files => ['/root/.ssh/id_rsa']