tdjfdjdj
tdjfdjdj

Reputation: 2471

Vagrant ssh using -c or --COMMAND causes the session to close

I have an issue with vagrant executing commands over ssh. The session terminates after acknowledging my command.

For example if I type

vagrant ssh -c "echo hello"

hello will appear in the terminal and then the session closes.

Other than config.ssh.timeout is there any other setting I should check or change?

Upvotes: 0

Views: 772

Answers (1)

tmatilai
tmatilai

Reputation: 4176

That's the expected behavior. Just like in normal ssh <command>, the command is run and session closed after the commend exits. This is also documented.

Upvotes: 1

Related Questions