New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh: add reverse proxy example #5164
Conversation
|
Hi @yangvw, could you please sign the license to pass the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @yangvw and thank you for page update! I've left some comments below for you to review.
@@ -31,6 +27,10 @@ | |||
|
|||
`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}` | |||
|
|||
- SSH reverse proxy: Expose a localhost port on the remote server (Set `GatewayPorts yes` in sshd_config to allow internet access): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things here:
- Does "localhost port on the remote server" mean a port that is open on the server, localhost referring to the server itself?
- "Set
GatewayPorts yes
in sshd_config" — issshd_config
on the server or client?
Also, will you please put sshd_config
in backticks per WIP PR #5128?
@@ -31,6 +27,10 @@ | |||
|
|||
`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}` | |||
|
|||
- SSH reverse proxy: Expose a localhost port on the remote server (Set `GatewayPorts yes` in sshd_config to allow internet access): | |||
|
|||
`ssh -NTR {{remote_port}}:localhost:{{local_port}} {{remote_host}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me this duplicates the ssh -L {{9999}}:{{example.org}}:{{80}}
example and also a bit inconsistent with it.
- Connect to a remote server using a specific port and run a command: | ||
|
||
`ssh {{username}}@{{remote_host}} -p {{2222}}` | ||
|
||
- Run a command on a remote server: | ||
|
||
`ssh {{remote_host}} {{command -with -flags}}` | ||
`ssh {{username}}@{{remote_host}} -p {{2222}} {{command -with -flags}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of combining these examples here. It makes the page more dense and difficult to follow for the beginner.
Closing as the author seems unavailable and the PR appears to be redundant. |
common/
,linux/
, etc.)