PrivateKeyFile Constructor (String, String)SSH .NET Client Library Documentation
Initializes a new instance of the PrivateKeyFile class.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public PrivateKeyFile(
	string fileName,
	string passPhrase
)
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullExceptionfileName is null or empty, or passPhrase is null.
Remarks

This method calls OnlineOpen(String, FileMode) internally, this method does not catch exceptions from OnlineOpen(String, FileMode).
See Also