How to work with a SSH Jump Server?

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 

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.

Just use regular sh step and run your ssh command?

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.

Hi

I have checked to support in the plugin we need to move to sshj library and change the implementation of two groovy files