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

pub struct Session(pub CommonSession<Arc<Config>>);

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]

Set the user.

[src]

Set the authentication method.

[src]

Set the authentication method.

[src]

Set the authentication method.

[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]

Request a session channel (the most basic type of channel). This function returns Some(..) immediately if the connection is authenticated, but the channel only becomes usable when it's confirmed by the server, as indicated by the confirmed field of the corresponding Channel.

[src]

Request an X11 channel, on which the X11 protocol may be tunneled.

[src]

Open a TCP/IP forwarding channel. This is usually done when a connection comes to a locally forwarded TCP/IP port. See RFC4254. The TCP/IP packets can then be tunneled through the channel using .data().

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