I can authenticate successfully with putty
on the server with my private key
and passphrase. But when I try to do it with jenkins publish o
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.
.ssh
folder should have drwx------
permissions (read/write/execute owner only)authorized_keys
file should have -rw-------
permissions (read/write owner only)To fix it:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys