grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit f515f8dd9f3fc90462b6306270b0ab7edd3a39c7
parent 3c47665062a10b9a42024ca64fcbf53d3a0d758b
Author: pyratebeard <root@pyratebeard.net>
Date:   Sun, 25 Nov 2018 16:26:40 +0000

tidy up references. add X11Forwarding command

Diffstat:
Mtechnology/linux/general/ssh.md | 38++++++++++++++++++++++----------------
1 file changed, 22 insertions(+), 16 deletions(-)

diff --git a/technology/linux/general/ssh.md b/technology/linux/general/ssh.md @@ -1,20 +1,26 @@ # ssh -- tunnel through jump server [ref_2](#ref#2) - ``` - ssh -t L7070:localhost:7071 user@jumphost ssh -t -D7071 user@furtherhost - ``` - ``` - ssh -A -t -l user jump-host \ - -L 8080:localhost:8080 \ - ssh -A -t -l user webserver.dmz \ - -L 8080:localhost:8080 - ``` -- mordhaus tunnel command - ``` - ssh -4 -A -t -ldburrows -D7070 kali ssh -4 -A -t -lpyratebeard -p22666 -D7070 powerzonemetal.uk - ``` +## tunnel +[tunnel][] through jump server +``` +ssh -t L7070:localhost:7071 user@jumphost ssh -t -D7071 user@furtherhost +``` + +``` +ssh -A -t -l user jump-host \ +-L 8080:localhost:8080 \ +ssh -A -t -l user webserver.dmz \ +-L 8080:localhost:8080 +``` + +## X11 forwarding +``` +ssh -X user@host +``` +- on server side `X11Forwarding` must be set to `yes` in '/etc/ssh/sshd_config' ## ref -- :1: http://lackof.org/taggart/hacking/ssh/ -- :2: http://digitalcrunch.com/linux/how-to-use-an-ssh-tunnel-through-a-jump-host/ +[ssh][] guide + +[tunnel]: http://digitalcrunch.com/linux/how-to-use-an-ssh-tunnel-through-a-jump-host/ +[ssh]: http://lackof.org/taggart/hacking/ssh/