Reputation: 692
i am encountering a weird issue when adding a new jenkins slave node. the steps that i have done are as followed:
getting the following error
further more, when i use the private key from the server to connect to it
ssh -i <path to private key> user@ip
gives me the same error
Permission denied (publickey).
but when i connect without the argument (with my public key) then it works.
Upvotes: 0
Views: 2231
Reputation: 1
you have to trust the key, in jenkins you have to select manually trusted key while adding the private key, then below that you have to check the check box for trusting the key, after saving that you'll get on the option to trust the host's key in nodes dash board.
Upvotes: 0
Reputation: 480
regarding your step 3 - are you saying that you are saving the slave
private key in jenkins credentials? It should be the master private key you should have in your jenkins credentials and use that to connect to your slave.
Upvotes: 1