From ab3ef79e7ca4953669a25eec1a455795ef523055 Mon Sep 17 00:00:00 2001 From: veypi Date: Fri, 21 Nov 2025 18:53:42 +0800 Subject: [PATCH] ssh remote --- README.md | 1 + linux/ssh.md | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 linux/ssh.md diff --git a/README.md b/README.md index 3b49b94..c8e7378 100644 --- a/README.md +++ b/README.md @@ -23,5 +23,6 @@ $$ + [^1]: https://veypi.com diff --git a/linux/ssh.md b/linux/ssh.md new file mode 100644 index 0000000..8731b9e --- /dev/null +++ b/linux/ssh.md @@ -0,0 +1,11 @@ +# ssh 代理 + +```bash + + +# 将本地的 2017 端口映射到远程服务器的 8022 端口 +ssh -R 8022:localhost:2017 user@ip -N + +# 将远程服务器的 8022 端口映射到本地的 2017 端口 +ssh -L 2017:localhost:8022 user@ip -N +```