pub async fn connect<S: AsRef<str>>(&self, destination: S) -> Result<Session, Error> {
        let destination = destination.as_ref();
        let (builder, destination) = self.resolve(destination);
        builder.just_connect(destination).await
    }
/// Connect to the host at the given `host` over SSH.
///
/// The format of `destination` is the same as the `destination` argument to `ssh`. It may be
/// specified as either `[user@]hostname` or a URI of the form `ssh://[user@]hostname[:port]`.
/// A username or port that is specified in the connection string overrides the one set in the
/// builder (but does not change the builder).
///
/// If connecting requires interactive authentication based on `STDIN` (such as reading a
/// password), the connection will fail. Consider setting up keypair-based authentication
/// instead.
Connect to the host at the given `host` over SSH.

If connecting requires interactive authentication based on `STDIN` (such as reading a
password), the connection will fail. Consider setting up keypair-based authentication
instead.
Connect to the host at the given ` host ` over SSH . If connecting requires interactive authentication based on ` STDIN ` ( such as reading a password ) the connection will fail . Consider setting up keypair - based authentication instead .
pub async fn connect<S: AsRef<str>>(&self, destination: S) -> Result<Session, Error> {
        let destination = destination.as_ref();
        let (builder, destination) = self.resolve(destination);
        builder.just_connect(destination).await
    }
pub async fn connect < S : AsRef < str > > ( & self , destination : S ) -> Result < Session , Error > { let destination = destination . as_ref ( ) ; let ( builder , destination ) = self . resolve ( destination ) ; builder . just_connect ( destination ) . await }
Connect to the host at the given `host` over SSH.
Connect to the host at the given ` host ` over SSH .
&self
destination
S
&self
destination
S