From f1a178b329eb7d5f2771ed5aab4c02c865c07646 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sun, 9 Aug 2026 08:01:51 +0200 Subject: [PATCH] Let mosh reuse SSH session We don't have bastion setup for mosh hosts, so figuring out IP from $SSH_CONNECTION is valid. --- migrated/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrated/.zshrc b/migrated/.zshrc index 4a791c8..2f6ef7c 100644 --- a/migrated/.zshrc +++ b/migrated/.zshrc @@ -186,8 +186,8 @@ osh() { ) & local loop_pid=$! - # Disable agent forwarding on the bootstrap connection to prevent it from overwriting the symlink in .ssh/rc - mosh --ssh="ssh -a" "$@" + # Allow mosh reuse of our master session. + mosh --experimental-remote-ip=remote "$@" kill $loop_pid 2>/dev/null }