You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the use case, but is there any security concerns that should be worried about when a user set's up an alias? I guess since this is self hosted that wouldn't be as large of an issue. i will take a look though!
I just merged the PR that contains support for TCP aliases. They work more or less exactly how you listed (I tested it using an SSH proxy command also). The only thing to note is an alias is considered the pair of port and hostname (i.e. the alias is myalias:22, not just myalias).
The reason for this was to
Provide less ability for enumeration, and
Allow for reusing an alias name (think hostname) for a single SSH command with multiple forward requests. That is, something like:
ssh -p 2222 ssi.sh -R $(hostname):22:localhost:22 R $(hostname):8443:localhost:8443 can be used.
Hello @antoniomika,
Can you add TCP aliases to your great tool? I found this functionality by another tool.
Here are examples to explain what I want:
ssh -p 2222 -R myalias:22:localhost:22 ssi.sh
ssh -o ProxyCommand="ssh -W myalias:22 -p 2222 ssi.sh" user@myalias
I see a lot of advantages to this approach:
The text was updated successfully, but these errors were encountered: