0

I've setup jenkins to use unix auth, with works just fine with passwords. Is it possible to use ssh auth for the cli too? ssh jenkins@localhost works just fine, but java -jar /opt/jenkins/jenkins-cli.jar -s http://localhost:8080 who-am-i fails (displays anonymous).

Reactormonk
  • 111
  • 4

1 Answers1

1

You have to add the pubkey manually to https://jenkins/user/$USER/configure. Which only exists if you log in with said user first.

Reactormonk
  • 111
  • 4