Jenkins Publish over ssh authentification failed with private key

前端 未结 10 1031
小鲜肉
小鲜肉 2021-01-13 07:39

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

10条回答
  •  太阳男子
    2021-01-13 08:00

    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 have drwx------ permissions (read/write/execute owner only)
    • the authorized_keys file should have -rw------- permissions (read/write owner only)

    To fix it:

    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/authorized_keys
    

提交回复
热议问题