How to automatically open my tmux session on each connection? #1526
-
Can I attach to my tmux when starting a SSH or Mosh session? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For mosh connections, go to Settings > Hosts, choose your host, and scroll down to Mosh section. In the command field, put:
In short, it will attach For SSH connections, go to SSH Config in the same settings panel and paste this setting:
End configuration should look like example below. From this point, Blink Shell will automatically attach to the session of your choice.
|
Beta Was this translation helpful? Give feedback.
For mosh connections, go to Settings > Hosts, choose your host, and scroll down to Mosh section. In the command field, put:
tmux new -A -s name -n name
In short, it will attach
(-A)
if the session name(-s)
already exists or create a new one. It also names the first window the same as the session(-n)
.For SSH connections, go to SSH Config in the same settings panel and paste this setting:
End configuration should look like example below.
From this point, Blink Shell will automatically attach to the session of your choice.