Skip to main content

cliban_server/
lib.rs

1//! cliban-server: russh-based SSH daemon (`cliband`) for hosted shared boards.
2
3pub mod commands;
4pub mod config;
5pub mod hostkey;
6pub mod server;
7pub mod shell;
8
9/// One error enum for the whole crate — config load, key handling, io.
10#[derive(Debug, thiserror::Error)]
11pub enum ServerError {
12    #[error("io error: {0}")]
13    Io(#[from] std::io::Error),
14    #[error("ssh key error: {0}")]
15    Key(#[from] russh::keys::ssh_key::Error),
16    #[error("config parse error: {0}")]
17    Toml(#[from] toml::de::Error),
18    #[error("ssh error: {0}")]
19    Russh(#[from] russh::Error),
20    #[error(transparent)]
21    Tenancy(#[from] cliban_tenancy::Error),
22}