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§

Structs§

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

Enums§

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

Traits§

  • Description of aspects of the server’s behavior.

Type Aliases§

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