Sure I can. Here is the result of the commands executed from a Windows Bash 
shell:

traddatz@CNDEA041500 MINGW64 ~
$ ssh [email protected] echo "OK"
[email protected]'s password:
OK

traddatz@CNDEA041500 MINGW64 ~
$ ssh -t [email protected] echo "OK"
[email protected]'s password:
OK
Connection to 10.200.36.33 closed.

traddatz@CNDEA041500 MINGW64 ~
$ ssh -T [email protected] echo "OK"
[email protected]'s password:
OK

traddatz@CNDEA041500 MINGW64 ~
$ ssh [email protected] ssh -V
[email protected]'s password:
OpenSSH_6.9p1, OpenSSL 1.0.2r  26 Feb 2019

traddatz@CNDEA041500 MINGW64 ~
$



Am Montag, 17. Juni 2019 15:41:38 UTC+2 schrieb Ivan Fernandez Calvo:
>
> Can you execute a command on a remote ssh session on the agent? something 
> like the following commands `ssh USER@JENKINS_AGENT echo "OK"`, `ssh -t 
> USER@JENKINS_AGENT echo "OK"`, `ssh -T USER@JENKINS_AGENT echo "OK"`
>

-- 
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/201538fa-4748-4d10-97f5-16933e88b581%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to