ComponentPro UltimateSftp

      Proxy servers

      Language Filter: AllSend comments on this topic to ComponentPro

      The Ultimate SFTP component fully supports many proxy servers (often referred to as "proxies"). If you need to connect to your SFTP server through a proxy, simply create a new instance of the WebProxyEx class, set the appropriate properties of the WebProxyEx object, and assign it to the Proxy property of the Sftp class, and the necessary proxy communication will take place.

      Ultimate SFTP component supports the following Proxy servers:

      SOCKS4 SOCKS4 proxy.
      SOCKS4A SOCKS4A proxy (capable of resolving domain names).
      SOCKS5 SOCKS5 proxy.
      HTTP CONNECT (Basic and NTLM supported) HTTP proxy using CONNECT method.
      SSH Tunneling Tunneling through SSH servers

      The following steps will help you to connect to an SFTP server through a proxy server

      using ComponentPro.Net;
      // Create a new class instance.
      Sftp client = new Sftp();
      // Create a new proxy object.
      WebProxyEx proxy = new WebProxyEx();
      proxy.Server = "proxyserver"; // Set proxy address here.
      proxy.Port = 1080; // Set proxy port here.
      proxy.UserName = "username"; // Proxy user name.
      proxy.Password = "password"; // Password.
      client.Proxy = proxy;
      // Connect to the SFTP server.
      // Authenticate.
      client.Authenticate("userName", "password");
      // Do something here...
      client.DownloadFile("/my remote file.dat", "my local file");
      // Disconnect.