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

前端 未结 8 811
盖世英雄少女心
盖世英雄少女心 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:21

    keys need to generated from jenkins user.

    sudo su jenkins
    ssh-keygen
    

    once the key is generated, it should be added as ssh key in bitbucket or github.

提交回复
热议问题