Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using Secure Shell in Chrome, can you automatically attach to a tmux session when SSH-ing to a server? If so, how do you do that?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

In the .bashrc file you should be able to call tmux attach on the server. A line like this is the last line of my `.bashrc' file and it works fine.

This of course requires that a session exists on the server at the point when you secure shell into it and that you are using bash.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.