ComponentPro UltimateSftp

      Authenticate(SecureShellGssApiCredentials) Method

      See AlsoMembers Options: Show AllLanguage Filter: AllSend comments on this topic to ComponentPro
      Authenticates to the server using GSSAPI.

      Syntax

      public void Authenticate(
         SecureShellGssApiCredentials credentials
      )

      Parameters

      credentials
      The GSSAPI authentication settings.

      Examples

      Shows how to use Connect, Authenticate, and Disconnect methods to establish a connection and disconnect.

      using System;
      using System.IO;
      using ComponentPro.Net;
      
      ...
      
      // Create a new class instance. 
      using (Sftp client = new Sftp())
      {
          // Connect to the SFTP server. 
          client.Connect("myserver");
      
          // Authenticates to the server using GSSAPI. 
          client.Authenticate(new SecureShellGssApiCredentials("user", "pass", "domain"));
      
          // Do something here... 
          client.DownloadFile("/my remote file.dat", "my local file");
      }

      Framework

      .NET Compact Framework.NET Compact Framework

      Supported version: 2.0, 3.5, and 3.9
      Assembly: ComponentPro.Sftp.CF (in ComponentPro.Sftp.CF.dll)

      .NET Framework.NET Framework

      Supported version: 2.0, 3.0, 3.5, 4.0, 4.5.x, 4.6.x and later
      Assembly: ComponentPro.Sftp (in ComponentPro.Sftp.dll)

      See Also