sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

Feature : Add bastion / Step up server support

Open arita37 opened this issue 4 years ago • 5 comments

Excellent work, thanks for your initiative,

Sometimes. server is behind a step up login sever.

If you can enable through a step up access.

Thanks

arita37 avatar May 15 '20 00:05 arita37

can you elaborate on what you mean by a step-up server? do you mean a bastion server? as in

ClientSSH > User@Bastion > User@Server

where it acts as a middleman to allow extra security? this would only be possible via a master ssh connection like what is already done, but would need some more work i think.

Merith-TK avatar May 15 '20 00:05 Merith-TK

Yes

This scheme middle server for extra security

On May 15, 2020, at 9:48, Merith [email protected] wrote:

 can you elaborate on what you mean by a step-up server? do you mean a bastion server? as in

ClientSSH > User@Bastion > User@Server where it acts as a middleman to allow extra security? this would only be possible via a master ssh connection like what is already done, but would need some more work i think.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

arita37 avatar May 15 '20 03:05 arita37

Can you rename the issue to "Feature: Add Bastion server Support"? so that this makes more sense to people looking at the issue name?

and also i have experienced this issue as well

Merith-TK avatar May 15 '20 19:05 Merith-TK

Ie definition : https://www.greenhousedata.com/blog/whats-a-jumpbox-or-bastion-host-anyway

arita37 avatar May 18 '20 03:05 arita37

If I'm understanding correctly, I've been doing this for a while. In your SSH config, simply use a ProxyJump. In this example tj is the bastion (ClientSSH > tj > snowy). Then just sshcode snowy.

The only problem with this is that you have to enter your password for tj and snowy, but this is expected as ssh snowy does the same.

sumanthratna avatar Jun 25 '20 22:06 sumanthratna