How to ssh to a linux server behind corporate firewall? [closed]

My company has a linux server (CentOS 6 VM) behind a corporate firewall, I have full root control of the VM, but I have no control over the firewall. There's an ssh server running on it, and I can ssh to it within the company network.

I would like to ssh to this VM when I'm outside of the company network. How do I achieve this?

This linux VM is running on a Mac host machine, which I can use logmein to connect, and then access the linux VM. I'd like to ssh directly to the linux VM.

I'm guessing there has to be some sort of handshake initiated by the linux VM to the outside machine for this to work?


Solution 1:

I would ask the IT department. There is a reason why they have installed this firewall and what you are trying to do may be against the security policy. They have to know that you need to access this server from outside of the company network. If there is no problem regarding the security policy, they will help you to have this access.

Solution 2:

You fix the corporate firewall to allow SSH in. You may not have control over the firewall, but if there is a business need for the access then any sensible corporate policy should permit it, and if you work for someone that doesn't have sensible policies, then hie thee to http://careers.serverfault.com/.

Solution 3:

If you have a server you can hit from both locations you can setup a reverse ssh tunnel

http://www.marksanborn.net/howto/bypass-firewall-and-nat-with-reverse-ssh-tunnel/