Update README.md

This commit is contained in:
skyper
2023-10-16 21:08:48 +01:00
committed by GitHub
parent 9f15bd008e
commit 22c694d5d0
+3 -3
View File
@@ -415,12 +415,12 @@ mkdir -p ~/.ssh 2>/dev/null
ssh-keygen -q -N "" -t ed25519 -f sshd_key
cat sshd_key.pub >>~/.ssh/authorized_keys
cat sshd_key
$(command -v sshd) -f /dev/null -o HostKey=$(pwd)/sshd_key -p 31337 # -Dvvv
$(command -v sshd) -f /dev/null -o HostKey=$(pwd)/sshd_key -o GatewayPorts=yes -p 31337 # -Dvvv
```
```sh
# On the client, copy the sshd_key from the server
# and proxy connection via the server:
ssh -D1080 -i sshd_key -p 31337 joe@1.2.3.4
# and proxy connection via the server and forward 31339 to localhsot:
ssh -D1080 -R31339:0:31339 -i sshd_key -p 31337 joe@1.2.3.4
# curl -x socks5h://0 ipinfo.io
```