Struct thrussh::client::Session [] [src]

pub struct Session(_);

The type of a client session.

Methods

impl Session
[src]

Retrieves the configuration of this session.

Retrieves the current user.

Sends a disconnect message.

Whether the client is authenticated.

Whether the client is disconnected.

Check whether a channel has been confirmed.

Tests whether we need an authentication method (for instance if the last attempt failed).

Returns the set of authentication methods that can continue, or None if this is not valid.

Send EOF to a channel

Send data or "extended data" to the given channel. Extended data can be used to multiplex different data streams into a single channel.

Request a pseudo-terminal with the given characteristics.

Request X11 forwarding through an already opened X11 channel. See RFC4254 for security issues related to cookies.

Set a remote environment variable.

Request a remote shell.

Execute a remote program (will be passed to a shell). This can be used to implement scp (by calling a remote scp and tunneling to its standard input).

Signal a remote process.

Request the start of a subsystem with the given name.

Inform the server that our window size has changed.

Request the forwarding of a remote port to the client. The server will then open forwarding channels (which cause the client to call .channel_open_forwarded_tcpip()).

Cancel a previous forwarding request.