How can I force `vagrant ssh` to do pseudo-tty allocation?

前端 未结 1 927
余生分开走
余生分开走 2021-01-15 03:50

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 \"tm

相关标签:
1条回答
  • 2021-01-15 04:33

    According to this documentation, you should try adding -- to the command.
    As I have not used vagrant, I am unsure of the formatting, but assume it would be similar to:

    vagrant ssh -- -t

    Unless, you need to include the username and host, in which case add the username and host.

    0 讨论(0)
提交回复
热议问题