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).
Asked
Active
Viewed 565 times
0

Reactormonk
- 111
- 4
1 Answers
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