pub const CLIENT_VERSION: &str = "SSH-2.0-SSH_RS-0.2.2";
#[allow(dead_code)]
pub mod ssh_str {
pub const SSH_USERAUTH: &str = "ssh-userauth";
pub const SSH_CONNECTION: &str = "ssh-connection";
pub const PUBLIC_KEY: &str = "publickey";
pub const PASSWORD: &str = "password";
pub const SESSION: &str = "session";
pub const SHELL: &str = "shell";
pub const EXEC: &str = "exec";
pub const SCP: &str = "scp";
pub const PTY_REQ: &str = "pty-req";
pub const XTERM_VAR: &str = "xterm-256color";
}
#[allow(dead_code)]
pub mod permission {
pub const DIR: &str = "775";
pub const FILE: &str = "664";
}
#[allow(dead_code)]
pub mod scp {
pub const SOURCE: &str = "-f";
pub const SINK: &str = "-t";
pub const RECURSIVE: &str = "-r";
pub const VERBOSE: &str = "-v";
pub const PRESERVE_TIMES: &str = "-p";
pub const QUIET: &str = "-q";
pub const LIMIT: &str = "-l";
pub const T: u8 = b'T';
pub const D: u8 = b'D';
pub const C: u8 = b'C';
pub const E: u8 = b'E';
pub const END: u8 = 0;
pub const ERR: u8 = 1;
pub const FATAL_ERR: u8 = 2;
}
#[allow(dead_code)]
pub mod size {
pub const ONE_GB: usize = 1073741824;
pub const BUF_SIZE: usize = 32768;
pub const LOCAL_WINDOW_SIZE: u32 = 2097152;
}
#[allow(dead_code)]
pub mod ssh_msg_code {
pub const SSH_MSG_DISCONNECT: u8 = 1;
pub const SSH_MSG_IGNORE: u8 = 2;
pub const SSH_MSG_UNIMPLEMENTED: u8 = 3;
pub const SSH_MSG_DEBUG: u8 = 4;
pub const SSH_MSG_SERVICE_REQUEST: u8 = 5;
pub const SSH_MSG_SERVICE_ACCEPT: u8 = 6;
pub const SSH_MSG_KEXINIT: u8 = 20;
pub const SSH_MSG_NEWKEYS: u8 = 21;
pub const SSH_MSG_KEXDH_INIT: u8 = 30;
pub const SSH_MSG_KEXDH_REPLY: u8 = 31;
pub const SSH_MSG_USERAUTH_REQUEST: u8 = 50;
pub const SSH_MSG_USERAUTH_FAILURE: u8 = 51;
pub const SSH_MSG_USERAUTH_SUCCESS: u8 = 52;
pub const SSH_MSG_USERAUTH_PK_OK: u8 = 60;
pub const SSH_MSG_GLOBAL_REQUEST: u8 = 80;
pub const SSH_MSG_REQUEST_SUCCESS: u8 = 81;
pub const SSH_MSG_REQUEST_FAILURE: u8 = 82;
pub const SSH_MSG_CHANNEL_OPEN: u8 = 90;
pub const SSH_MSG_CHANNEL_OPEN_CONFIRMATION: u8 = 91;
pub const SSH_MSG_CHANNEL_OPEN_FAILURE: u8 = 92;
pub const SSH_MSG_CHANNEL_WINDOW_ADJUST: u8 = 93;
pub const SSH_MSG_CHANNEL_DATA: u8 = 94;
pub const SSH_MSG_CHANNEL_EXTENDED_DATA: u8 = 95;
pub const SSH_MSG_CHANNEL_EOF: u8 = 96;
pub const SSH_MSG_CHANNEL_CLOSE: u8 = 97;
pub const SSH_MSG_CHANNEL_REQUEST: u8 = 98;
pub const SSH_MSG_CHANNEL_SUCCESS: u8 = 99;
pub const SSH_MSG_CHANNEL_FAILURE: u8 = 100;
pub const SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT: u8 = 1;
pub const SSH_DISCONNECT_PROTOCOL_ERROR: u8 = 2;
pub const SSH_DISCONNECT_KEY_EXCHANGE_FAILED: u8 = 3;
pub const SSH_DISCONNECT_RESERVED: u8 = 4;
pub const SSH_DISCONNECT_MAC_ERROR: u8 = 5;
pub const SSH_DISCONNECT_COMPRESSION_ERROR: u8 = 6;
pub const SSH_DISCONNECT_SERVICE_NOT_AVAILABLE: u8 = 7;
pub const SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED: u8 = 8;
pub const SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE: u8 = 9;
pub const SSH_DISCONNECT_CONNECTION_LOST: u8 = 10;
pub const SSH_DISCONNECT_BY_APPLICATION: u8 = 11;
pub const SSH_DISCONNECT_TOO_MANY_CONNECTIONS: u8 = 12;
pub const SSH_DISCONNECT_AUTH_CANCELLED_BY_USER: u8 = 13;
pub const SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE: u8 = 14;
pub const SSH_DISCONNECT_ILLEGAL_USER_NAME: u8 = 15;
pub const SSH_OPEN_ADMINISTRATIVELY_PROHIBITED: u32 = 1;
pub const SSH_OPEN_CONNECT_FAILED: u32 = 2;
pub const SSH_OPEN_UNKNOWN_CHANNEL_TYPE: u32 = 3;
pub const SSH_OPEN_RESOURCE_SHORTAGE: u32 = 4;
}
#[allow(dead_code)]
pub mod algorithms {
pub const DH_CURVE25519_SHA256: &str = "curve25519-sha256";
pub const DH_ECDH_SHA2_NISTP256: &str = "ecdh-sha2-nistp256";
pub const PUBLIC_KEY_ED25519: &str = "ssh-ed25519";
pub const PUBLIC_KEY_RSA: &str = "ssh-rsa";
pub const ENCRYPTION_CHACHA20_POLY1305_OPENSSH: &str = "chacha20-poly1305@openssh.com";
pub const ENCRYPTION_AES128_CTR: &str = "aes128-ctr";
pub const MAC_HMAC_SHA1: &str = "hmac-sha1";
pub const COMPRESSION_ALGORITHMS: &str = "none";
}
pub(crate) const ALPHABET: [u8; 6] = [b'A', b'B', b'C', b'D', b'E', b'F'];