Jenkins ERROR: Server rejected the 1 private key(s)

created at 10-07-2021 views: 17

Jenkins reported an error when using SSH Username with private key to connect when configuring the node ERROR: Server rejected the 1 private key(s)

Correct steps:

  1. Generate the key on the master machine and configure it on the slave machine to make sure that the master machine can connect to the slave machine without secret
  2. Key point: fill in the key as id_rsa instead of id_rsa.pub
created at:10-07-2021
edited at: 10-07-2021: