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 back my changes now. i cant login to server and sshd config is server specific in my case. Please suggest.
On Tuesday, July 21, 2020 at 6:00:34 PM UTC+2 [email protected] wrote: > 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 5:43:39 PM UTC-4, Sakshi Rathore wrote: >> >> 0I have a bash script which connects and exexutes programs from my local >> to remote server and now this should be executed from jenkins build so for >> this jenkins is taking continous changes from git for this script but my >> build is failing with below error: >> >> Warning: Identity file >> /c/Users/D35N/Downloads/GitHubProjeckt/Automation/GitHubProjeckt/newharbortestkey >> >> not accessible: No such file or directory. Host key verification failed. >> Build step 'Execute shell' marked build as failure >> >> I have tried to set ssh connectivity in my jenkins server for this remote >> server incredentials and ssh plugins but using my key i am getting an error >> cant connect to the server. >> >> when i run the script from local it works fine and my ssh connection gets >> established properly using SSH key. >> >> jenkins server is also integrated or installed on my kuberenets cluster >> which is my remote server in this case and bash script should execute on >> this kuberenets cluster. >> >> i generated ley for jenkins in remote server and using this key for ssh >> plugin setup but i am getting cant connect to the server error everytime. >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/76abb79e-648e-4786-aa8d-4b7a72a8c04fn%40googlegroups.com.
