Function gix_transport::client::ssh::connect
source · pub fn connect(
url: Url,
desired_version: Protocol,
options: Options,
trace: bool
) -> 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.
If trace
is true
, all packetlines received or sent will be passed to the facilities of the gix-trace
crate.