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

pub struct Session(_);

The type of a client session.

Methods

impl Session
[src]

[src]

Flush the temporary cleartext buffer into the encryption buffer. This does not flush to the socket.

[src]

Retrieves the configuration of this session.

[src]

Retrieves the current user.

[src]

Sends a disconnect message.

[src]

Whether the client is authenticated.

[src]

Whether the client is disconnected.

[src]

Check whether a channel has been confirmed.

[src]

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

[src]

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

[src]

Send EOF to a channel

[src]

Request a pseudo-terminal with the given characteristics.

[src]

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

[src]

Set a remote environment variable.

[src]

Request a remote shell.

[src]

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).

[src]

Signal a remote process.

[src]

Request the start of a subsystem with the given name.

[src]

Inform the server that our window size has changed.

[src]

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()).

[src]

Cancel a previous forwarding request.

[src]

Send data to a channel. The number of bytes added to the "sending pipeline" (to be processed by the event loop) is returned.