Start tmux directly at ssh login

When ssh into a server I want to start directly tmux or use an existing session.

ssh example.local -t "tmux a || tmux"

Leave a Reply

Your email address will not be published. Required fields are marked *