From c6cd1a6a33fa9850c920ae78f5f7e8bd99e55ac5 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 28 Mar 2021 18:27:03 -0700 Subject: [PATCH] add placeholder for agent forwarding It's not fully implemented by libssh2. refs: https://github.com/libssh2/libssh2/issues/535 --- wezterm-ssh/src/pty.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wezterm-ssh/src/pty.rs b/wezterm-ssh/src/pty.rs index e9c292c30..cbec636c5 100644 --- a/wezterm-ssh/src/pty.rs +++ b/wezterm-ssh/src/pty.rs @@ -144,6 +144,19 @@ impl crate::session::SessionInner { let mut channel = sess.channel_session()?; channel.handle_extended_data(ssh2::ExtendedData::Merge)?; + + /* libssh2 doesn't properly support agent forwarding + * at this time: + * + if let Some("yes") = self.config.get("forwardagent").map(|s| s.as_str()) { + log::info!("requesting agent forwarding"); + if let Err(err) = channel.request_auth_agent_forwarding() { + log::error!("Failed to establish agent forwarding: {:#}", err); + } + log::info!("agent forwarding OK!"); + } + */ + channel.request_pty( &newpty.term, None,