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=$!
|
local loop_pid=$!
|
||||||
|
|
||||||
# Disable agent forwarding on the bootstrap connection to prevent it from overwriting the symlink in .ssh/rc
|
# Allow mosh reuse of our master session.
|
||||||
mosh --ssh="ssh -a" "$@"
|
mosh --experimental-remote-ip=remote "$@"
|
||||||
|
|
||||||
kill $loop_pid 2>/dev/null
|
kill $loop_pid 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user