coder / sshcode

Run VS Code on any server over SSH.
MIT License
5.74k stars 216 forks source link

Feature : Add bastion / Step up server support #184

Open arita37 opened 4 years ago

arita37 commented 4 years ago

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

Merith-TK commented 4 years ago

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.

arita37 commented 4 years ago

Yes

This scheme middle server for extra security

On May 15, 2020, at 9:48, Merith notifications@github.com 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.

Merith-TK commented 4 years ago

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

arita37 commented 4 years ago

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

sumanthratna commented 4 years ago

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.