I am attempting to connect into Jenkins via id_rsa/id_rsa.pub. My keys are obviously good because I do this all over the place with ssh. Jenkins-cli.jar seems a bit confused to me. Please take a look at my output:
$ /cygdrive/c/Java/bin/java -jar jenkins-cli.jar -s
http://myserver:8080/ -i /home/efetzer/.ssh/id_rsa who-am-i
No such file exists: \home\efetzer\.ssh\id_rsaJenkins CLI
Usage: java -jar jenkins-cli.jar [-s URL] command [opts...] args...
Options:
-s URL : the server URL (defaults to the JENKINS_URL env var)
-i KEY : SSH private key file used for authentication
-p HOST:PORT : HTTP proxy host and port for HTTPS proxy tunneling. See
http://jenkins-ci.org/https-proxy-tunnel-noCertificateCheck : bypass HTTPS certificate check entirely. Use with caution
-noKeyAuth : dont try to load the SSH authentication private key. Conflicts with -i
The available commands depend on the server. Run the help command to
see the list.
$ ls /home/efetzer/.ssh
id_rsa id_rsa.pub known_hosts
It appears as though Jenkins-cli.jar windowafied my directory seperators. It's true I'm on a winders box, but running in Cygwin. Any help would be appreciated.
Thanks,
Eric