Compare commits
No commits in common. "22a9bbdd9cca65e71c23f5d7295bcd59ba3ca390" and "6319a78ffaf1637d03fda649ab22612950f15b6f" have entirely different histories.
22a9bbdd9c
...
6319a78ffa
@ -410,7 +410,6 @@ sort deserts.txt | uniq (sort without duplicates)
|
||||
|
||||
```
|
||||
grep -irno "h1"
|
||||
grep -irno "whatever" --exclude-dir=wordpress-baumfreunde-prod /home/rogrut
|
||||
grep -irn "h1" /home/user/verzeichnis-abc
|
||||
grep -irn "h1" --include \*.ps1 --include \*.txt
|
||||
grep -irn "h1" --include \*.ps1 --include \*.txt /home/user/verzeichnis-abc
|
||||
|
||||
@ -122,23 +122,6 @@ CONTAINER ID IMAGE COMMAND CREATED STATUS
|
||||
ssh -L 33333:127.0.0.1:63003 rogrut@v2202306200871231373.supersrv.de
|
||||
```
|
||||
|
||||
### Von Laptop auf Host C verbinden, der nur über Host B erreichbar ist
|
||||
|
||||
es gilt immernoch:
|
||||
|
||||
```
|
||||
ssh -L [local_port]:[destination_address]:[destination_port] [username]@[ssh_server]
|
||||
```
|
||||
|
||||
nur verwenden wir nicht 127.0.0.1 sondern die IP von Host C. Zum Beispiel so:
|
||||
|
||||
```
|
||||
ssh -L 8123:10.10.5.5:22 ubuntu@3.87.58.91
|
||||
```
|
||||
|
||||
Dann verbinden mit `ssh -p 8123 user1@localhost`.
|
||||
|
||||
|
||||
### Port öffnen ohne Login in Shell
|
||||
Um zu verhindern, dass man eingeloggt wird, also nur den Port 33333 zu öffnen, müssen noch zusätzliche Parameter angegeben werden: `-LNf`, also `ssh -LNf 33333:127.0.0.1:3306 rogrut@v2202306200871231373.supersrv.de`
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user