Skip to content
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

WIP: Remote Dynamic Forwarding #615

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

darinkes
Copy link
Collaborator

This is still WIP and in RFC state.

It implements reverse dynamic forwarding added in OpenSSH 7.5.

https://www.openssh.com/releasenotes.html

  • ssh(1): add support for reverse dynamic forwarding. In this mode,
    ssh will act as a SOCKS4/5 proxy and forward connections
    to destinations requested by the remote SOCKS client. This mode
    is requested using extended syntax for the -R and RemoteForward
    options and, because it is implemented solely at the client,
    does not require the server be updated to be supported.

Usage is the same like in the ssh(1) commandline tool (https://man.openbsd.org/ssh.1)

using (var client = new SshClient("localhost", 22, "username", "password"))
{
    client.Connect();
    var forwarding = new ForwardedPortRemote("127.0.0.1", 5555);
    client.AddForwardedPort(forwarding);

    forwarding.Start();
}

@WojciechNagorski
Copy link
Collaborator

WojciechNagorski commented Aug 25, 2023

@darinkes PR needs refreshing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants