Re: Help required: jenkins SSH connectivity issue

2020-08-04 Thread jeremy mordkoff
You should start a new thread I cannot tell what is happening from this. You should also post the code On Tuesday, August 4, 2020 at 11:03:28 AM UTC-4, Sakshi Rathore wrote: > > yes thanks, it worked but after successful installation and execution of > script i am getting status as Build

Re: Help required: jenkins SSH connectivity issue

2020-08-04 Thread Sakshi Rathore
yes thanks, it worked but after successful installation and execution of script i am getting status as Build failure: Could you please advise here. Below are the logs: Started by user Sakshi Rathore Running as SYSTEM Building in workspace

Re: Help required: jenkins SSH connectivity issue

2020-08-03 Thread jeremy mordkoff
The same solutions offered for client to host should apply for local system to host. Did you add the local system's public ssh key to the host's authorized key file? I have no clue what a "crumb" is On Monday, August 3, 2020 at 2:14:59 AM UTC-4, Sakshi Rathore wrote: > > could you please

Re: Help required: jenkins SSH connectivity issue

2020-07-31 Thread jeremy mordkoff
ssh is picky about permissions. make sure the .ssh directory itself has perms 770 and any files in that folder have perms 660 and that they are all owned by the correct user on both the client and server. try adding *-o identitiesOnly=yes* on the ssh client command line. There is a server

Re: Help required: jenkins SSH connectivity issue

2020-07-31 Thread sakshira...@gmail.com
thanks very much for all the advice , i tried in the given way but while conencting to the server to the client using manual ssh i get below error everytime: ccpuser@harbortest-master-gro-a7c3cedfab:~$ ssh ccpuser@10.32.141.35 The authenticity of host '10.32.141.35 (10.32.141.35)' can't be

Re: Help required: jenkins SSH connectivity issue

2020-07-29 Thread jeremy mordkoff
There are two SSH keys involved when establishing a session The one you are setting here is the key used ti identify the client to the server (host). There is also the key that the server (host) sends down to the client. You can see this the first time you ssh to a host and it asks you if you

Re: Help required: jenkins SSH connectivity issue

2020-07-29 Thread Sakshi Rathore
below is the part of my script where i am doing ssh and it works fine in local. scp -i $SSHKEY_PATH $CERT_PATH ccpuser@10.32.141.35:/home/ccpuser scp -i $SSHKEY_PATH $KEY_FILE ccpuser@10.32.141.35:/home/ccpuser scp -i $SSHKEY_PATH $CRT_FILE ccpuser@10.32.141.35:/home/ccpuser scp -i $SSHKEY_PATH

Re: Help required: jenkins SSH connectivity issue

2020-07-29 Thread Sakshi Rathore
I tried a lot of things but my ssh connection is not working from jenkins to ssh server. One more thing my Jenkins and ssh server is hosting on same IP address is there anyway i can resolve this issue? On Mon, 27 Jul, 2020, 9:39 AM Sakshi Rathore, wrote: > thanks , i tried this as well but

Re: Help required: jenkins SSH connectivity issue

2020-07-27 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, den 27.07.2020, 09:37 +0200 schrieb Sakshi Rathore: > thanks , can you please suggest how can i change it to non verifying > one? Click on your agent, select "Configure", look for "Host Key Verification Strategy" and select "Non verifying Verification Strategy". HTH... Dirk -- Dirk

Re: Help required: jenkins SSH connectivity issue

2020-07-27 Thread Sakshi Rathore
thanks , i tried this as well but while getting connection encountring below error: Permission denied (publickey,password,keyboard-interactive) build marked as failed. On Thu, Jul 23, 2020 at 3:47 PM jeremy mordkoff wrote: > I think the issue is that the client does not trust the server's host

Re: Help required: jenkins SSH connectivity issue

2020-07-27 Thread Sakshi Rathore
thanks , can you please suggest how can i change it to non verifying one? On Thu, Jul 23, 2020 at 2:32 PM 'Dirk Heinrichs' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Am Donnerstag, den 23.07.2020, 13:08 +0200 schrieb Sakshi Rathore: > > [07/23/20 11:03:50] [SSH] WARNING: The

Re: Help required: jenkins SSH connectivity issue

2020-07-23 Thread jeremy mordkoff
I think the issue is that the client does not trust the server's host key. These keys are stored by the client in ~/.ssh/known_hosts Try copying/appending your .ssh/known_hosts file to jenkins' On Monday, July 20, 2020 at 5:43:39 PM UTC-4, Sakshi Rathore wrote: > > 0I have a bash script

Re: Help required: jenkins SSH connectivity issue

2020-07-23 Thread Sakshi Rathore
Yes /home/user/.ssh/authorized_keys is complete path On Thu, 23 Jul, 2020, 2:28 PM 'Dirk Heinrichs' via Jenkins Users, < jenkinsci-users@googlegroups.com> wrote: > Am Donnerstag, den 23.07.2020, 13:08 +0200 schrieb Sakshi Rathore: > > * Add the public key on ~/.ssh/authorized_keys *This was

Re: Help required: jenkins SSH connectivity issue

2020-07-23 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, den 23.07.2020, 13:08 +0200 schrieb Sakshi Rathore: > [07/23/20 11:03:50] [SSH] WARNING: The SSH key for this host does not > match the key required in the connection configuration. Connections > will be denied until the host key matches the configuration key. You're sure you

Re: Help required: jenkins SSH connectivity issue

2020-07-23 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, den 23.07.2020, 13:08 +0200 schrieb Sakshi Rathore: > * Add the public key on ~/.ssh/authorized_keys This was done You did that on the agent, I guess, and "~" here means "the /home of the user" you try to connect as? HTH... Dirk -- Dirk HeinrichsSenior Systems Engineer, Delivery

Re: Help required: jenkins SSH connectivity issue

2020-07-23 Thread Sakshi Rathore
i managed to resolve login problem but still facing issue while connecting my remote server using ssh key to jenkins. i have shell script also where i am doing ssh connection from local to remote and normal execution is working fine without jenkins but when i schedule a build in jenkins it fails.

Re: Help required: jenkins SSH connectivity issue

2020-07-23 Thread Sakshi Rathore
Unfortunately i dont hv duplicate instance openą„¤ I only have ssh-key to login to the server which was working before Any other way to implement this? On Wed, 22 Jul, 2020, 5:54 PM jeremy mordkoff, wrote: > ouch. I always keep one window open ssh'd in as root when I play with > sshd_config.

Re: Help required: jenkins SSH connectivity issue

2020-07-22 Thread jeremy mordkoff
ouch. I always keep one window open ssh'd in as root when I play with sshd_config. Hopefully you have console access and a username/password with sudo rights. On Monday, July 20, 2020 at 5:43:39 PM UTC-4, Sakshi Rathore wrote: > > 0I have a bash script which connects and exexutes programs from

Re: Help required: jenkins SSH connectivity issue

2020-07-22 Thread sakshira...@gmail.com
thanks, i tried in this way also by overrirding file but connection is not established. during more workaround i tried editing sshd config for parameter PermitRootLogin yes but after this change i am not able to login into server itself using ssh key. Is there any suggestion how can i revert

Re: Help required: jenkins SSH connectivity issue

2020-07-21 Thread jeremy mordkoff
Where is that file referenced? In your .ssh/config file? It sounds like a simple path issue -- the config file is referencing a location that is not available to jenkins. You can override this on the command line, e.g. something like -i /c/Users/jenkins/ssh/id_rsa On Monday, July 20, 2020 at