mirror of
https://github.com/Erreur32/cheat.git
synced 2024-10-31 21:11:07 +01:00
SSH cheatsheet updated: support for SSH tunnels between local host and remote host
This commit is contained in:
parent
6f579f9234
commit
61458933eb
@ -10,6 +10,9 @@ ssh -t user@example.com 'the-remote-command'
|
|||||||
# To tunnel an x session over SSH:
|
# To tunnel an x session over SSH:
|
||||||
ssh -X user@example.com
|
ssh -X user@example.com
|
||||||
|
|
||||||
|
# Redirect traffic with a tunnel between local host (port 8080) and a remote host (remote.example.com:5000) through a proxy (personal.server.com):
|
||||||
|
ssh -f -L 8080:remote.example.com:5000 user@personal.server.com -N
|
||||||
|
|
||||||
# To launch a specific x application over SSH:
|
# To launch a specific x application over SSH:
|
||||||
ssh -X -t user@example.com 'chromium-browser'
|
ssh -X -t user@example.com 'chromium-browser'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user