1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

ssh: apply HostKeyAlgorithms in ssh config

This commit is contained in:
cycleke 2023-07-19 19:08:35 +08:00 committed by Wez Furlong
parent 3b4d82e74c
commit 211bce5037

View File

@ -201,6 +201,9 @@ impl SessionInner {
if let Some(bind_addr) = self.config.get("bindaddress") { if let Some(bind_addr) = self.config.get("bindaddress") {
sess.set_option(libssh_rs::SshOption::BindAddress(bind_addr.to_string()))?; sess.set_option(libssh_rs::SshOption::BindAddress(bind_addr.to_string()))?;
} }
if let Some(host_key) = self.config.get("hostkeyalgorithms") {
sess.set_option(libssh_rs::SshOption::HostKeys(host_key.to_string()))?;
}
let sock = let sock =
self.connect_to_host(&hostname, port, verbose, self.config.get("proxycommand"))?; self.connect_to_host(&hostname, port, verbose, self.config.get("proxycommand"))?;