1

When I run ssh gerrit.iotivity.org, I get permission denied(public key) error.

Before this, I run the following command:

ProxyCommand nc -X5 -x <proxy-address>:<port> %h %p

with my proxy address and port.

My ssh config file is as follows:

Host iotivity gerrit.iotivity.org 
Hostname gerrit.iotivity.org 
IdentityFile ~/.ssh/id_rsa.pub
User [Teju]
Port 29418

Please help.

1
  • use the private key file (id_rsa without the .pub) for the identity file and try again
    – Thomas Ward
    Feb 28, 2016 at 16:43

1 Answer 1

1

When generating the keys use a name id_rsa without any extension. And use the following content in the config file:

Host iotivity gerrit.iotivity.org 
Hostname gerrit.iotivity.org 
IdentityFile ~/.ssh/id_rsa
User Teju
Port 29418

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .