OK, answering my own question because I've been hammering at it.  The only 
thing that seems to work is to use a completely relative path:

$ /cygdrive/c/Java/bin/java -jar jenkins-cli.jar -s http://myserver:8080/ 
-i ../.ssh/id_rsa who-am-i
Authenticated as: efetzer
...

Anyone with a clue as to why?  Maybe this won't be an issue once I move to 
the Linux box I will be using in the real world...



On Friday, September 18, 2015 at 10:57:09 AM UTC-6, Eric Fetzer wrote:

> 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_rsa
> Jenkins 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9aa11169-e32c-48e2-9911-51e3b7bdeb62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to