f515f8dd9f3fc90462b6306270b0ab7edd3a39c7
technology/linux/general/ssh.md
... | ... | @@ -1,20 +1,26 @@ |
1 | 1 | # ssh |
2 | 2 | |
3 | -- tunnel through jump server [ref_2](#ref#2) |
|
4 | - ``` |
|
5 | - ssh -t L7070:localhost:7071 user@jumphost ssh -t -D7071 user@furtherhost |
|
6 | - ``` |
|
7 | - ``` |
|
8 | - ssh -A -t -l user jump-host \ |
|
9 | - -L 8080:localhost:8080 \ |
|
10 | - ssh -A -t -l user webserver.dmz \ |
|
11 | - -L 8080:localhost:8080 |
|
12 | - ``` |
|
13 | -- mordhaus tunnel command |
|
14 | - ``` |
|
15 | - ssh -4 -A -t -ldburrows -D7070 kali ssh -4 -A -t -lpyratebeard -p22666 -D7070 powerzonemetal.uk |
|
16 | - ``` |
|
3 | +## tunnel |
|
4 | +[tunnel][] through jump server |
|
5 | +``` |
|
6 | +ssh -t L7070:localhost:7071 user@jumphost ssh -t -D7071 user@furtherhost |
|
7 | +``` |
|
8 | + |
|
9 | +``` |
|
10 | +ssh -A -t -l user jump-host \ |
|
11 | +-L 8080:localhost:8080 \ |
|
12 | +ssh -A -t -l user webserver.dmz \ |
|
13 | +-L 8080:localhost:8080 |
|
14 | +``` |
|
15 | + |
|
16 | +## X11 forwarding |
|
17 | +``` |
|
18 | +ssh -X user@host |
|
19 | +``` |
|
20 | +- on server side `X11Forwarding` must be set to `yes` in '/etc/ssh/sshd_config' |
|
17 | 21 | |
18 | 22 | ## ref |
19 | -- :1: http://lackof.org/taggart/hacking/ssh/ |
|
20 | -- :2: http://digitalcrunch.com/linux/how-to-use-an-ssh-tunnel-through-a-jump-host/ |
|
23 | +[ssh][] guide |
|
24 | + |
|
25 | +[tunnel]: http://digitalcrunch.com/linux/how-to-use-an-ssh-tunnel-through-a-jump-host/ |
|
26 | +[ssh]: http://lackof.org/taggart/hacking/ssh/ |