ssh - Jenkins CLI Authentication -
i trying run groovysh on jenkins cli, using following command:
java -jar jenkins-cli.jar -s <jenkins url> -i jenkinsprivatekey.ppk groovysh
i generated private key file using puttygen, , pasted public key shh public keys box on /me/configure page of jenkins. it's not key doesn't work - seems it's not authenticating @ all. when run who-am-i using cli:
java -jar jenkins-cli.jar -s <jenkins url> -i jenkinsprivatekey.ppk who-am-i
it gives me response of:
authenticated as: anonymous
what missing here? thought if authentication failed @ least display error message of kind. there way verify private key works?
edit: after experimentation, seems authentication via cli fail silently - put bogus public key in profile configuration, , still saw no error.
you may need convert putty keys openssh format them work key.
see https://wiki.cloudbees.com/bin/view/dev/customer%2bprovided%2bslaves%2bwindows
"back putty key generator, use conversions > export openssh key save private key file."
if works, feel free edit the jenkins cli wiki page!
Comments
Post a Comment