Crate zssh

Source
Expand description

This crate implements a minimal SSH server for embedded targets; please refer to the project repository README.md for more information and for examples of usage.

The library works in the following way:

  1. Write a type implementing the Behavior trait as desired;
  2. Instantiate a Transport backed by some async I/O stream;
  3. Loop, receiving new client requests via Channel objects;
  4. Handle each request, reading or writing into the channel.

The API is designed to be minimal and simple to use.

Re-exports§

pub extern crate ed25519_dalek;

Structs§

Channel
Channel associated with an SSH transport.
Reader
Reader associated with an SSH channel.
Transport
Implementation of an SSH server’s transport layer.
Writer
Writer associated with an SSH channel.

Enums§

AuthMethod
Authentication method that a user may choose.
DisconnectReason
Set of possible disconnection reasons.
Error
Set of possible transport errors.
Pipe
Destination of data written to a channel.
ProtocolError
Set of possible protocol errors.
PublicKey
Public key associated with a user identity.
Request
Request associated with an SSH channel.
SecretKey
Secret key associated with a host server.

Traits§

Behavior
Description of aspects of the server’s behavior.

Type Aliases§

TransportError
Convenience type alias describing the transport error type for a given behavior type.