SSHUser Property
The username for SSH authentication.
Object Oriented Interface
public function getSSHUser(); public function setSSHUser($value);
Procedural Interface
ipworksssh_sexec_get($res, 25 ); ipworksssh_sexec_set($res, 25, $value );
Default Value
''
Remarks
SSHUser specifies the username which is used to authenticate the client to the SSH server. This property is required.
Example (User/Password Auth):
Control.SSHAuthMode = SftpSSHAuthModes.amPassword
Control.SSHUser =
"username"
Control.SSHPassword =
"password"
Control.SSHLogon(
"server"
, 22)
Control.SSHAuthMode = SftpSSHAuthModes.amPublicKey
Control.SSHUser =
"username"
Control.SSHCertStoreType = SSHCertStoreTypes.cstPFXFile;
Control.SSHCertStore =
"cert.pfx"
;
Control.SSHCertStorePassword =
"certpassword"
;
Control.SSHCertSubject =
"*"
;
Control.SSHLogon(
"server"
, 22)
Data Type
String