adierebel / SSH Cheat Sheet

30 Jan 2018 at 13:04

SOCKS Proxy

Set up a SOCKS proxy on 127.0.0.1:1080 that lets you pivot through the remote host:

ssh -D 127.0.0.1:1080 user@host

SSH Tunnel

Tunnel port 27017 on server to 127.0.0.1:8888

ssh -L 8888:127.0.0.1:27017 user@host

Logout SSH on Background

List connection

~#

Close connection

~&

Comments (0)