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

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

    I would add that if you created the keys by hand, they might still be owned by you and not readable by jenkins, try:

    sudo chown jenkins -R /var/lib/jenkins/.ssh/*
    

提交回复
热议问题