How can I force `vagrant ssh` to do pseudo-tty allocation? -
the first thing after vagrant ssh
attaching tmux
session.
i want automate this, try: vagrant ssh -c "tmux attach"
, fails , says "not terminal".
after googling find this article , know should force pseudo-tty allocation before executing screen-based program, , can done -t
option of ssh
.
but don't know how use option vagrant ssh
.
according this documentation, should try adding --
command.
have not used vagrant, unsure of formatting, assume similar to:
vagrant ssh -- -t
unless, need include username , host, in case add username , host.
Comments
Post a Comment