Struct ssh::Session [] [src]

pub struct Session { /* fields omitted */ }

Methods

impl Session
[src]

Set the location of the ".ssh" directory, where the config file and keys can be found (it may include "%s", which will be replaced by the user home directory).

Set the location of the "knownhosts" file (it may include "%s", which will be replaced by the user home directory).

Set the location of the key to be used for authentication (it may include "%s", which will be replaced by the user home directory).

Allow version 1 of the protocol (default unspecified).

Allow version 1 of the protocol (default unspecified).

Parse configuration file. If the path is None, then ~/.ssh/config is read.

Check whether the remote server's key is known.

Accept the remote server's key.

Get a hash of the server's public key

Disconnect the session. The session can be reused later to open a new session.

Authenticate with a password.

Print a prompt on the standard output, and then ask the user a password on the standard input. The typed password is not echoed.

Print a prompt on the standard output, and then ask the user a password on the standard input. The typed password is not echoed.

Start an SCP connection.

Start a channel to issue remote commands.

Trait Implementations

impl Debug for Session
[src]

Formats the value using the given formatter.

impl Drop for Session
[src]

A method called when the value goes out of scope. Read more