pub async fn dial_tls(
host: &str,
port: u16,
opts: &TlsConnectOptions,
) -> SshCliResult<TlsStream>Available on crate feature
tls only.Expand description
Dials host:port, completes TLS with SNI/TlsConnectOptions, returns the stream.
ยงErrors
DNS/TCP failure, invalid SNI, handshake failure, or PEM/mTLS config errors.