I've opened a tmux session on my local machine, and ssh to the remote machine. After this, I typed command "tmux attach" on the remote machine, then I got a remote tmux session on my local tmux session.
Now I want to detach the remote tmux sesstion, I've tried
but it detached my local tmux session rather than the remote one.
How can I detach the remote tmux sesstion?