The first thing I do after vagrant ssh
is usually attaching to a tmux
session.
I want to automate this, so I try: vagrant ssh -c "tmux attach"
, but it fails and says "not a terminal".
After some googling I find this article and know that I should force a pseudo-tty allocation before executing a screen-based program, and it can be done with the -t
option of ssh
.
But I don't know how to use this option with vagrant ssh
.