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