Файли
openidea/crates/ide-ssh/src/lib.rs
T
l0ng-ai 6c9c02417e fix(ssh): reach older servers through the algorithm lists of ~/.ssh/config (#7799)
The built-in SSH client only offered russh's defaults and ignored the algorithm options of ~/.ssh/config, so a server that only speaks older algorithms could not be reached. The client now starts from the OpenSSH client's defaults (adding the ECDH key exchanges, aes128-gcm and the SHA-1 MACs) and applies KexAlgorithms, HostKeyAlgorithms, Ciphers and MACs with OpenSSH's +, - and ^ forms. They apply to SSH configurations that sign in with a password or key as well as to OpenSSH config hosts. When negotiation fails, the error names what the server offers and the line that allows it.

Fixes #7757
2026-12-03 19:36:01 +08:00

27 рядки
852 B
Rust

//! SSH for every remote feature: configurations and `~/.ssh/config` hosts,
//! host-key trust, authentication (password, key, agent), remote commands and
//! processes, SFTP (and FTP for deployment), local port forwarding, and askpass for `ssh` / `git`.
mod algorithms;
pub mod askpass;
pub mod filesystem;
pub mod ftp;
pub mod git_creds;
pub mod manager;
pub mod secrets;
pub mod session;
pub mod sftp;
pub mod shell;
pub mod target;
#[cfg(feature = "testing")]
pub mod testing;
pub mod tunnel;
pub use filesystem::{FsConnection, RemoteFs};
pub use manager::SshManager;
pub use russh::Sig;
pub use session::{ConnectError, ExecOutput, Output, RemoteProcess, Session, UnknownHostKey};
pub use sftp::RemoteEntry;
pub use target::{SshFiles, SshTarget, expand, openssh_args, resolve_ssh_remote_url, resolve_ssh_remote_url_with};
pub use tunnel::Tunnel;