NET SFTP Library
SshPassphrase Property
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : SshPassphrase Property
A passphrase for the SshKeyFile or SshKeyStream if required
Syntax
'Declaration
 
Public Property SshPassphrase As System.String
'Usage
 
Dim instance As SFTP
Dim value As System.String
 
instance.SshPassphrase = value
 
value = instance.SshPassphrase
public System.string SshPassphrase {get; set;}
public read-write property SshPassphrase: System.String; 
public function get,set SshPassphrase : System.String
public: __property System.string* get_SshPassphrase();
public: __property void set_SshPassphrase( 
   System.string* value
);
public:
property System.String^ SshPassphrase {
   System.String^ get();
   void set (    System.String^ value);
}
Example
SFTP sftp = new SFTP(); //Trial Mode            
//SFTP sftp = new SFTP("place user name here", "place license key here");
sftp.SshKeyFile = @"c:\mykey";
sftp.SshPassphrase = "qazzaq";
 
// set the name of the SFTP server( its URL )
sftp.HostAddress = "some.sftp.server.com";
sftp.UserName = "anonymous"; // replace with your user name
sftp.Password = "user@mail.com"; // replace with your password
        
sftp.Connect();
Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp As SFTP = New SFTP("place user name here", "place license key here")
sftp.SshKeyFile = "c:\mykey"
sftp.SshPassphrase = "qazzaq"
 
' set the name of the SFTP server( its URL )
sftp.HostAddress = "some.sftp.server.com"
sftp.UserName = "anonymous" ' replace with your user name
sftp.Password = "user@mail.com" ' replace with your password
 
sftp.Connect()
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SFTP Class
SFTP Members