I need to push the build artifacts to the internal server via the Jenkins server. However, the internal server needs to connect through an SSH Jump Server. How can the Jenkins pipeline task use the SSH Pipeline Steps plugin’s sshput/sshcommand to connect through the SSH Jump Server when connecting to the server?
Command line example:
ssh user@server.example.com -J jumpuser@jumpserver.example.com
panicking
(Michael Nazzareno Trimarchi)
August 30, 2025, 12:10pm
2
Could be gateway option? Need to look at the code, another option is to change config in the nodes in .SSH directory. I did not test anything
NO. These are two similar but not identical techniques.
SSH Gateway is a standalone middleware. JumpServer is just a regular SSHD.
bpedersen2
(Björn Pedersen)
September 5, 2025, 12:10pm
4
Just use regular sh step and run your ssh command?
panicking
(Michael Nazzareno Trimarchi)
September 7, 2025, 9:05am
5
I think that make sense to update the plugin too, but I don’t know how much will be used
This is possible, OpenSSH natively supports SSH JumpServer. But, this seems to deviate from the original intentions.
panicking
(Michael Nazzareno Trimarchi)
September 8, 2025, 5:48pm
7
Hi
I have checked to support in the plugin we need to move to sshj library and change the implementation of two groovy files