We don't have bastion setup for mosh hosts, so figuring out IP from $SSH_CONNECTION is valid.
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user