Expand description
Re-exports§
pub use libssh_rs_sys as sys;
Structs§
- Auth
Methods - bitflags that indicates permitted authentication methods
- Channel
- Represents a channel in a
Session
. - Interactive
Auth Info - Represents the overall set of instructions in keyboard-interactive auth
- Interactive
Auth Prompt - Represents a question prompt in keyboard-interactive auth
- Metadata
- Represents metadata about a file. libssh returns this in a couple of contexts, and not all fields are used in all contexts.
- Open
Flags - Bitflags that indicate options for opening a sftp file.
- Session
- A Session represents the state needed to make a connection to a remote host.
- SetAttributes
- Change multiple file attributes at once. If a field is_some, then its value will be applied to the file on the server side. If it is_none, then that particular field will be left unmodified.
- Sftp
- SftpDir
- Sftp
Error - Sftp
File - Signal
State - SshKey
- Represents the public key provided by the remote host
Enums§
- Auth
Status - Indicates the disposition of an authentication operation
- Error
- Represents an error condition
- File
Type - Known
Hosts - Indicates the state of known-host matching, an important set to detect and avoid MITM attacks.
- LogLevel
- Allows configuring the underlying
libssh
debug logging level - Poll
Status - Indicates available data for the stdout or stderr on a
Channel
. - Public
KeyHash Type - The type of hash to use when inspecting a public key fingerprint
- SshOption
- Allows configuring different aspects of a
Session
. You always need to set at leastSshOption::Hostname
.
Functions§
- get_
input - A utility function that will prompt the user for input via the console/tty.
Type Aliases§
- SshResult
- Represents the result of a fallible operation