From fd1c6f3f011ef35216f3baa9c73d024955c155ac Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 26 Oct 2023 20:57:03 -0500 Subject: [PATCH] Add SSH port forwarding --- docs/Miscellaneous/ssh-port-forwarding.md | 23 +++++++++++++++++++++++ overrides/glossary.md | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 docs/Miscellaneous/ssh-port-forwarding.md diff --git a/docs/Miscellaneous/ssh-port-forwarding.md b/docs/Miscellaneous/ssh-port-forwarding.md new file mode 100644 index 0000000..a3aa20e --- /dev/null +++ b/docs/Miscellaneous/ssh-port-forwarding.md @@ -0,0 +1,23 @@ +# SSH Port Forwarding + +## Local port forwarding + +This sends the traffic to the host you're SSHing into, e.g. accessing a service on a remote server. + +```sh +ssh -L :localhost: @ +``` + +Or to forward that port to a different host *through* the SSH server: + +```sh +ssh -L localhost::: @ +``` + +## Remote port forwarding + +This send the traffic from the SSH server to your local machine, e.g. running a web server on your local machine and making it accessible from the server. + +```sh +ssh -R :localhost: @ +``` diff --git a/overrides/glossary.md b/overrides/glossary.md index ead3f3b..11b56ac 100644 --- a/overrides/glossary.md +++ b/overrides/glossary.md @@ -7,4 +7,5 @@ *[Plex]: A proprietary media server software *[Jellyfin]: A FOSS media server software *[Docker]: A popular containerization platform -*[Podman]: A FOSS drop-in replacement for Docker \ No newline at end of file +*[Podman]: A FOSS drop-in replacement for Docker +*[SSH]: Secure Shell - a protocol for secure remote shell access \ No newline at end of file