Just tried Victor, no such luck:

$ /cygdrive/c/Java/bin/java -jar jenkins-cli.jar -s http://myserver:8080/ 
-i /cygdrive/c/CYGWIN/home/efetzer/.ssh/id_rsa who-am-i
No such file exists: \cygdrive\c\CYGWIN\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 /cygdrive/c/CYGWIN/home/efetzer/.ssh
id_rsa  id_rsa.pub  known_hosts



On Friday, September 18, 2015 at 1:08:35 PM UTC-6, Victor Martinez wrote:

> Have you tried with the full path where you have your cygwin installation, 
> lets assume your installation is based on /cygdrive/c/cygwin then your full 
> home path should be something like:
> /cygdrive/c/cygwin/home/efetzer
>
>
> On Friday, 18 September 2015 18:57:09 UTC+2, 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/437087e6-9157-4706-af26-ca1aab41d379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to