I need to SSH into a client server that has an IP whitelist as part of access control. I don't have a static IP - sometimes I work from home, sometimes the library, sometimes a coffee shop, etc. How can I get a static IP? If I am on vacation, and a remote coworker has to connect to the whitelisted server, how would they get in (assuming they have credentials)?
Does this involve setting up and connecting through a VPN? Or a proxy server?
I am looking for both a solution and an explanation of how it works.
A bit more detail: There seem to be a few options here, and maybe that's where I get confused.
- Set up and connect to a VPN, and then my ssh requests will be routed through there. The server will see my IP as that of the VPN gateway (is this proper terminology?)
- Set up a server, and ssh into that server and then ssh from there into the end server. This is not ideal, since I will have to move files to the intermediate server, and then to the main server.
- Set up a server, and use port-forwarding as a pass through.
What is not clear to me is the pros/cons of these approaches. Web searching didn't explain that, so I am asking here. Not just for a solution, but for an explanation as well.