I guess you make something like `ssh user@host echo "hello"`, if you want
to see the whole key interchange you have to enable the verbose mode `ssh
-vvv user@host echo "hello"` this give you all the data to troubleshooting
the issue

El jue., 6 feb. 2020 a las 15:52, Sanders, Sholom (<
[email protected]>) escribió:

> I am trying to figure out why the authorization on the remote host is
> failing. What can I do or turn on to see what is happening.
>
>
>
>
>
> *From:* [email protected] <[email protected]>
> *On Behalf Of *Sanders, Sholom
> *Sent:* Thursday, February 6, 2020 9:48 AM
> *To:* [email protected]
> *Subject:* [SOCIAL NETWORK] RE: [SOCIAL NETWORK] Re: [SOCIAL NETWORK] Re:
> [SOCIAL NETWORK] RE: [SOCIAL NETWORK] Re: SSH Remote Host not being able to
> connect
>
>
>
> I already have that plugin. In my build section, I have to use conditional
> statements to figure out which remote machine to go to . I have to run a
> shell script on that machine to (1) copy the deployment directory from the
> deployment machine to the environment machine and (2) install the
> deployment into the application environment. In this case it is into IBM
> WebSphere which hosts the application.  The shell script which is run on
> the remote machine will do the scp from the deployment machine to the
> machine which has this shell script. The scp is not being done from the
> Jenkins machine where the build was done. The build project actually copies
> the build to a deployment machine, which hosts all the build results.
>
>
>
> So in the build section of the deployment project, I am using Execute
> shell script on remote host using ssh. In order to do that I set up the SSH
> Remote Hosts in the “Configure System” under Manage Jenkins. It is in here
> where I am getting the error for three of the five environment hosts, UAT,
> STG and PRD
>
>
>
> *From:* [email protected] <[email protected]>
> *On Behalf Of *Ivan Fernandez Calvo
> *Sent:* Thursday, February 6, 2020 8:57 AM
> *To:* Jenkins Users <[email protected]>
> *Subject:* [SOCIAL NETWORK] Re: [SOCIAL NETWORK] Re: [SOCIAL NETWORK] RE:
> [SOCIAL NETWORK] Re: SSH Remote Host not being able to connect
>
>
>
> in that case, I would use the https://plugins.jenkins.io/ssh-agent
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplugins.jenkins.io%2Fssh-agent&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461874299&sdata=blhhOuMaTAZjZmwn9EsrZCVTOpe3SY3F%2BabpCM4CPu8%3D&reserved=0>
>  here
> you have some examples
>
>
>
> https://jenkins.io/doc/pipeline/steps/ssh-agent/
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjenkins.io%2Fdoc%2Fpipeline%2Fsteps%2Fssh-agent%2F&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461884254&sdata=XGXQM82ahEy9dc23b96t20xbqKMamkyn7puAPfFCJ7Y%3D&reserved=0>
>
>
> https://support.cloudbees.com/hc/en-us/articles/360029470091-How-to-use-the-SSH-Agent-Plugin
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.cloudbees.com%2Fhc%2Fen-us%2Farticles%2F360029470091-How-to-use-the-SSH-Agent-Plugin&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461884254&sdata=kAywc%2BFYHA2VxB7xtLcbqB9fyK4GWmQx%2Bu10KeTya2Y%3D&reserved=0>
>
>
> https://stackoverflow.com/questions/44237417/how-do-i-use-ssh-in-a-jenkins-pipeline
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F44237417%2Fhow-do-i-use-ssh-in-a-jenkins-pipeline&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461884254&sdata=kBxwJxAjVt1hhi%2F7mm7BEHO0kxZzwG%2B79qPqqLtrivg%3D&reserved=0>
>
>
> https://stackoverflow.com/questions/37805901/jenkins-pipeline-sshagent-remote-ssh
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F37805901%2Fjenkins-pipeline-sshagent-remote-ssh&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461894208&sdata=cH9c0V6qPDKW2s91rvhEjIetP6S%2FzimoV7zQNIywP%2BI%3D&reserved=0>
>
>
>
>
>
> El jueves, 6 de febrero de 2020, 12:26:40 (UTC+1), Sanders, Sholom
> escribió:
>
> I am trying to run a shell script on the remote host from Jenkins using
> SSH. I am not actually building anything. All my builds are done on the
> Jenkins machine and the source code comes from GIT. This particular Jenkins
> job is to distribute the resulting build to various environments as needed.
> So this job has two parameters, the environment to distribute the build to
> and the particular build version to distribute. There are five
> environments. I was able to configure successfully DEV and TSt. The
> configurations for UAT, STG and PRD fail to connect to server. Each
> environment has a shell script which copies over the deployment version to
> that machine.
>
>
>
> --
> 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/c64c73c3-a71f-42cb-b666-a164e7d701fb%40googlegroups.com
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjenkinsci-users%2Fc64c73c3-a71f-42cb-b666-a164e7d701fb%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461894208&sdata=LtpvMIoEKMpzwfpoL%2BtWeXRm%2BMg4MNNx20QiKe7E2zw%3D&reserved=0>
> .
>
>
> ------------------------------
>
>
> This e-mail, including any attachments, may be confidential, privileged or
> otherwise legally protected. It is intended only for the addressee. If you
> received this e-mail in error or from someone who was not authorized to
> send it to you, do not disseminate, copy or otherwise use this e-mail or
> its attachments. Please notify the sender immediately by reply e-mail and
> delete the e-mail from your system.
>
> --
> 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/BL0PR0901MB4356880443CE25524D8A7599F21D0%40BL0PR0901MB4356.namprd09.prod.outlook.com
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjenkinsci-users%2FBL0PR0901MB4356880443CE25524D8A7599F21D0%2540BL0PR0901MB4356.namprd09.prod.outlook.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Cssanders%40nycopportunity.nyc.gov%7C71a6d6b51a7b4778740708d7ab139ba4%7C73d61799c28440228d4154cc4f1929ef%7C0%7C0%7C637165974461904163&sdata=D1s1fd4XavoMZfeS%2BJtNi5uxQTvZG%2FJ7PD%2FpvwFlsJc%3D&reserved=0>
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/8uH_CCF1nKY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/BL0PR0901MB4356A7EA45CBFEC358803115F21D0%40BL0PR0901MB4356.namprd09.prod.outlook.com
> <https://groups.google.com/d/msgid/jenkinsci-users/BL0PR0901MB4356A7EA45CBFEC358803115F21D0%40BL0PR0901MB4356.namprd09.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Un Saludo
Iván Fernández Calvo
https://www.linkedin.com/in/iv%C3%A1n-fern%C3%A1ndez-calvo-21425033

-- 
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/CAKo5Qrpby2qn-S34S6%3DXUDCf_7U%2Bh%3DQhBbDXVE9%3Dv7_gZKPDzw%40mail.gmail.com.

Reply via email to