Last Updated: February 25, 2016
· jturolla

SSH your office's computer with reverse ssh tunnel.

On your office's computer:

sudo ssh -n -r

From home, access it:

ssh -p 8022

2 Responses
Add your response

The public computer needs to have GatewayPorts enabled on the /etc/ssh/sshd_config, otherwise it wont work.


GatewayPorts yes

In /etc/ssh/sshd_config

over 1 year ago ·

I think the remote option needs to be uppercase for starters. Also this opens up ssh access to your work host to world. You can limit this to localhost on your DO vm with:

sudo ssh -n -R

The following command then would be

ssh -o ProxyCommand="ssh nc localhost 8022" companyusername@companyofficecomputer

You need netcat installed on the DO host obviously.

over 1 year ago ·