Permission denied (public key) during fetch from GitHub with Jenkins user on Ubuntu

前端 未结 8 812
盖世英雄少女心
盖世英雄少女心 2021-02-02 07:56

Here is my setup:

  1. Jenkins is running on my linux machine as \'jenkins\' user.
  2. I have generated a ssh key-pair as described in Linux - Setup Git, for the \
8条回答
  •  醉梦人生
    2021-02-02 08:34

    Since nobody wrote the answer from the comments for several months, I will quickly do so.

    There are 2 possible problems/solutions:

    1. id_rsa created with wrong user

      Create id_rsa as the jenkins user (see hudson cannot fetch from git repository)

    2. Leave passphrase empty

提交回复
热议问题