Namespace SshSharp.Extensions.DependencyInjection
Classes
- SshEndpointOptions
One named SSH endpoint, registered with
services.AddSshClient(name): where to connect and how to authenticate. Mutable, so configuration can bind to it (.BindConfiguration("Ssh:Deploy")). Set either ConfigAlias, to connect throughssh_config, or Host.
Interfaces
- ISshClientFactory
Opens new connections to the endpoints registered with
services.AddSshClient(name).
- ISshConnectionProvider
One long-lived connection per endpoint registered with
services.AddSshClient(name), shared by its callers and opened again when it drops. The provider owns the clients and disposes them with the container: callers must not dispose them.