User Property
The username for SSH authentication.
Syntax
ANSI (Cross Platform) char* GetUser();
int SetUser(const char* lpszUser); Unicode (Windows) LPWSTR GetUser();
INT SetUser(LPCWSTR lpszUser);
@property (nonatomic,readwrite,assign,getter=user,setter=setUser:) NSString* user; - (NSString*)user; - (void)setUser:(NSString*)newUser;
#define PID_SSHAUTH_USER 21 IPWORKSAUTH_EXTERNAL void* IPWORKSAUTH_CALL IPWorksAuth_SSHAuth_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSAUTH_EXTERNAL int IPWORKSAUTH_CALL IPWorksAuth_SSHAuth_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
User specifies the username which is used to authenticate the client to the SSH server. This property is required.
Example (User/Password Auth):
Control.SSHAuthMode = SshauthSSHAuthModes.amPassword Control.SSHUser = "username" Control.SSHPassword = "password" Control.SSHLogon("server", 22)Example (Public Key Auth):
Control.SSHAuthMode = SshauthSSHAuthModes.amPublicKey Control.SSHUser = "username" Control.SSHCertStoreType = SSHCertStoreTypes.cstPFXFile; Control.SSHCertStore = "cert.pfx"; Control.SSHCertStorePassword = "certpassword"; Control.SSHCertSubject = "*"; Control.SSHLogon("server", 22)
Data Type
String