I am wanting to attempt the SSH tunnel described in this guide: SSH Tunneling — Syncthing v1 documentation
I am not using port 22 for ssh. How would I use the given example but specify to use port 22987 instead of port 22? Thanks.
#/bin/bash
ssh -i ~/.keys/somekey.pem
-L 127.0.0.1:22001:127.0.0.1:22000
-R 127.0.0.1:22001:127.0.0.1:22000
syncguy@hostb
From man ssh
-p port
Port to connect to on the remote host. This can be
specified on a per-host basis in the configuration file.
So something like
ssh -p 22987 -i ~/.keys/somekey.pem \
-L 127.0.0.1:22001:127.0.0.1:22000 \
-R 127.0.0.1:22001:127.0.0.1:22000 \
syncguy@hostb
That’s what I needed, thanks. I’m used to writing out the ssh command all on one line, I guess I can save this as a text file and run it as a script?
system
(system)
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.