+1 vote
by (600 points)

I want to do sftp connectivity via Proxy in Rebex . We are currently connecting via Machine Name/IP of it, port. And login using Credentials using Core FTP Mini Rebex Server.

I am doing my code in c#.

Sample code we use:

SftpConnectionState IsActive = null;

            if (objSFTP == null)
            {
                objSFTP = new Sftp();
            }


            IsActive = objSFTP.GetConnectionState();

            if (IsActive.Connected == false)
            {
                //objSFTP.Licensing.Key = "==ApbJxV1c9p5QQYwRploBirbrUgloeUjvKm6PrjeY==";
                objSFTP.Connect(Common.SFTP_IP, Common.SFTP_PORT);
                objSFTP.Login(Common.SFTP_USERNAME, Common.SFTP_PASSWORD);
            }
Applies to: Rebex SFTP

1 Answer

+1 vote
by (147k points)

Please check out the sample code and use properties of objSFTP.Proxy to specify proxy setting before calling objSFTP.Connect.

...