From 506256f73b463e5374fa5f8e9383bbbca18af5d1 Mon Sep 17 00:00:00 2001 From: SkyperTHC <5938498+SkyperTHC@users.noreply.github.com> Date: Mon, 6 Feb 2023 20:57:36 +0000 Subject: [PATCH] Update README.md --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 70ed8be..f1baf2e 100644 --- a/README.md +++ b/README.md @@ -284,25 +284,26 @@ The others configuring server.org:1080 as their SOCKS4/5 proxy. They can now con [ssh-j.com](http://ssh-j.com) provides a great relay service: To access a host behind NAT/Firewall (via SSH). -On the host behind NAT: Create a reverse SSH tunnel to [ssh-j.com](http://ssh-j.com): +On the host behind NAT: Create a reverse SSH tunnel to [ssh-j.com](http://ssh-j.com) like so: ```sh ssh_j() { - [[ -z $1 ]] && { echo "ssh_j [anyrandomname]"; return; } - echo "To connect to this host: ssh -J ${1,,}@ssh-j.com ${1,,}" - ssh -o StrictHostKeyChecking=no ${1,,}@ssh-j.com -N -R ${1,,}:22:127.0.0.1:22 + local pw + pw=$1 + [[ -z $pwd ]] && { pw=$(head -c32