I am learning to use tmux and encountered the following behaviour which I am unsure is normal:
1) I remote into my FreeBSD system over ssh, start a tmux session, then suspend it, and end the ssh session.
2) Locally on my FreeBSD machine if I start a new tmux session and inspect the $SSH_CLIENT and $SSH_TTY variables they still contain the IP/info of the remote machine.
The same behaviour occurs if I detach from the tmux session in step 1 (instead of suspending)
Why is this? Since this is a new tmux session on my local machine shouldn't these variables be null? (If on the local machine I enter into the suspended/detached session, and exit it, then re-enter tmux then both variables are null as I would expect them to be)
1) I remote into my FreeBSD system over ssh, start a tmux session, then suspend it, and end the ssh session.
2) Locally on my FreeBSD machine if I start a new tmux session and inspect the $SSH_CLIENT and $SSH_TTY variables they still contain the IP/info of the remote machine.
The same behaviour occurs if I detach from the tmux session in step 1 (instead of suspending)
Why is this? Since this is a new tmux session on my local machine shouldn't these variables be null? (If on the local machine I enter into the suspended/detached session, and exit it, then re-enter tmux then both variables are null as I would expect them to be)