Skip to content

Commit

Permalink
add placeholder for agent forwarding
Browse files Browse the repository at this point in the history
It's not fully implemented by libssh2.
refs: libssh2/libssh2#535
  • Loading branch information
wez committed Mar 29, 2021
1 parent a3d4b4c commit c6cd1a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wezterm-ssh/src/pty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
* <https://github.com/libssh2/libssh2/issues/535>
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,
Expand Down

0 comments on commit c6cd1a6

Please sign in to comment.