We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OpenSSH supports forwarding to unix sockets: https://lwn.net/Articles/609321/.
For example, a mysql server on remotehost using socket /var/lib/mysql/mysql.sock can be made accessible on the local machine on TCP port 5000:
remotehost
/var/lib/mysql/mysql.sock
5000
ssh -L 127.0.0.1:5000:/var/lib/mysql/mysql.sock remotehost
The text was updated successfully, but these errors were encountered:
Are you just talking about a normal forwarded port using SSH? This functionality is already built-in. See an example here: https://stackoverflow.com/questions/41152737/c-sharp-ssh-net-tunnel-mysql-client-ioexception.
Check out ForwardedPort (base class), ForwardedPortLocal, ForwardedPortRemote, and ForwardedPortDynamic classes.
There are a few quirks though...
Sorry, something went wrong.
@LightCC No, he's talking about unix domain sockets.
Don't hesitate to file issues for those "quirks".
No branches or pull requests
OpenSSH supports forwarding to unix sockets: https://lwn.net/Articles/609321/.
For example, a mysql server on
remotehost
using socket/var/lib/mysql/mysql.sock
can be made accessible on the local machine on TCP port5000
:The text was updated successfully, but these errors were encountered: