SSH your office's computer with reverse ssh tunnel.
On your office's computer:
sudo ssh -n -r 0.0.0.0:8022:localhost:22 [email protected]
From home, access it:
ssh [email protected] -p 8022
Written by Julio Turolla
Related protips
2 Responses

The public computer needs to have GatewayPorts enabled on the /etc/ssh/sshd_config, otherwise it wont work.
Add
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 127.0.0.1:8022:localhost:22 [email protected]
The following command then would be
ssh -o ProxyCommand="ssh [email protected] nc localhost 8022" companyusername@companyofficecomputer
You need netcat installed on the DO host obviously.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Proxy
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#