srchulo
srchulo

Reputation: 5203

Net::SSH2 authenticate using public key

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!

Upvotes: 0

Views: 413

Answers (1)

ikegami
ikegami

Reputation: 385496

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

Upvotes: 1

Related Questions