Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: Getting "SOCKS5: General failure" error [2094]

$
0
0
I am working on code which connects using sftp and proxy. Following is my code snippet. I am getting "SOCKS5: General failure." error. Please help. (Using 4.0 binary)

Imports Renci.SshNet.SftpClient
.
.
.
Dim pa As New Renci.SshNet.PasswordAuthenticationMethod("<username for site>", "<password for site")

Dim connectionInfo As New Renci.SshNet.ConnectionInfo(ftpUrl, <site port number>, "<username for site>", Renci.SshNet.ProxyTypes.Socks5, "<our proxy name>", <our proxy port number>, "<my windows username>", "<my windows password", pa)

Dim sftp As New Renci.SshNet.SftpClient(connectionInfo)
sftp.Connect()
.
.
Comments: ** Comment from web user: mrinalk **

It's our company's proxy server. For privacy reasons, I cannot give you the server name.
I have tried other code (Chilkat.SFtp) and it works fine, so I do not think it's anything with proxy. This component is not free component so I would like to use Renci.SshNet component.
Do you have any other way to use Renci.SshNet - any other way to connect to sftp via proxy?


Viewing all articles
Browse latest Browse all 1026

Trending Articles