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

Do I have a way to connect my ssh server through the Socks5 agent? #1130

Closed
shirakun opened this issue May 18, 2017 · 2 comments
Closed

Do I have a way to connect my ssh server through the Socks5 agent? #1130

shirakun opened this issue May 18, 2017 · 2 comments

Comments

@shirakun
Copy link

我在本地使用tor建立了一个socks5代理
我想通过它来连接我的服务器
但我发现我ssh2_connect()无法通过socks5代理链接
我这找到了phpseclib
phpseclib可以实现它吗
我在本地使用tor建立了一个socks5代理
我想通过它来连接我的服务器
但我发现我ssh2_connect()无法通过socks5代理链接
我这找到了phpseclib
phpseclib可以实现它吗?

I built a Socks5 proxy locally using tor
I want to connect to my server through it
But I found my ssh2_connect () failed to link through the Socks5 proxy
I found it, phpseclib
Can phpseclib implement it?

@terrafrost
Copy link
Member

terrafrost commented May 19, 2017

You can call fsockopen, do whatever prep work to it is necessary, and then pass that to the constructor as the only parameter and connect that way. #1117 (comment) demonstrates the concept with a CONNECT proxy.

@terrafrost
Copy link
Member

#1460 demos SOCKS5 proxy support.

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

No branches or pull requests

2 participants