Initializes a new instance of the PrivateKeyAuthenticationMethod class.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public PrivateKeyAuthenticationMethod( string username, params PrivateKeyFile[] keyFiles )
Parameters
- username
- Type:
System String
The username.
- keyFiles
- Type: Renci.SshNet PrivateKeyFile
The key files.
Exceptions
| Exception | Condition |
|---|---|
| username is whitespace or null. |
See Also