Function git_transport::client::ssh::connect

source ·
pub fn connect(
    url: Url,
    desired_version: Protocol,
    options: Options
) -> Result<SpawnProcessOnDemand, Error>
Available on crate feature blocking-client only.
Expand description

Connect to host using the ssh program to obtain data from the repository at path on the remote.

The optional user identifies the user’s account to which to connect, while port allows to specify non-standard ssh ports.

The desired_version is the preferred protocol version when establishing the connection, but note that it can be downgraded by servers not supporting it.