summaryrefslogtreecommitdiff
path: root/src/remote/host.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-21 15:22:46 +0300
committerGitHub <noreply@github.com>2026-09-21 15:22:46 +0300
commit3602c757e07645383dc092f8540dcb72ba0ed49d (patch)
tree4c4aae37a34a5bfe16ac45e710bbb9a8684915d2 /src/remote/host.rs
parent5a649142233631f8407b4099da0e8e78dfef8574 (diff)
fix: refresh forwarded ssh agents after reconnect (#4443)
refs #1931
Diffstat (limited to 'src/remote/host.rs')
-rw-r--r--src/remote/host.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote/host.rs b/src/remote/host.rs
index 08f5d122..825ae10c 100644
--- a/src/remote/host.rs
+++ b/src/remote/host.rs
@@ -20,6 +20,8 @@ pub(crate) fn run_remote_client_bridge(args: &[String]) -> io::Result<()> {
}
};
ensure_remote_server_running()?;
+ #[cfg(unix)]
+ let _ssh_agent = super::ssh_agent::Registration::start();
let socket_path = crate::server::socket_paths::client_socket_path();
let stream = crate::ipc::connect_local_stream(&socket_path).map_err(|err| {