Jenkins Publish over ssh authentification failed with private key
Looks like you're using keyfile authentication, so you'll get this error from Jenkins if you haven't set the permissions correctly on your .ssh
folder and/or ~/.ssh/authorized_keys
file.
- the
.ssh
folder should havedrwx------
permissions (read/write/execute owner only) - the
authorized_keys
file should have-rw-------
permissions (read/write owner only)
To fix it:
chmod 700 ~/.sshchmod 600 ~/.ssh/authorized_keys
I ran into the same issue today and it turned out i was accidentally supplying the path to the public key instead of the private one.
So the "path to key" should be something like
.ssh/id_rsa
instead of
.ssh/id_rsa.pub
Because your linux login need password, the answer is :
1. Passphrase: your passphrase 2. path to key: your private key path 3. key : blank 4. Disable exec : un-check
SSH Servers
1. Name: remote_user@remotehost.com 2. hostname: remotehost.com 3. Username: remote_user 4. Remote Directory: empty
Advanced --
5. check the box "use passsword authentication, or use a different key" `important` 6. Passphrase / Password: your linux login password`important` 7. path to key: blank 8. key:blank 9. port: 22 10. Timeout(ms): 300000
'Test Configuration'success