0

I'm trying to use Net::SSH2 to execute commands on a remote machine. However, I do not know how to authenticate by using a public key. The documentation mentions this method:

auth_publickey ( username, public key, private key [, password ] )

However, it requires both a public key and a private key. Is there anyway that I can authenticate by just using a public key? Thanks!

srchulo
  • 5,143
  • 4
  • 43
  • 72

1 Answers1

1

That makes no sense. "Everyone" has your public key. It can't be used to authenticate you.

ikegami
  • 367,544
  • 15
  • 269
  • 518
  • you're right. I had a misunderstanding of what the two different keys were. I was able to figure it out now. – srchulo Feb 25 '13 at 00:32