<PackageReference Include="SSH.NET" Version="2024.2.0" />

Renci.SshNet.PrivateKeyConnectionInfo

Provides connection information when private key authentication method is used.
namespace Renci.SshNet { public class PrivateKeyConnectionInfo : ConnectionInfo, IDisposable { public ICollection<IPrivateKeySource> KeyFiles { get; } public PrivateKeyConnectionInfo(string host, string username, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, int port, string username, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles); public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles); public void Dispose(); protected virtual void Dispose(bool disposing); } }