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 +```