Monday, October 25, 2021

[SOLVED] Vagrant creating multiple terminals in guest machine

Issue

I have vagrant and an ubuntu server 16.04 box started with it.

By using vagrant ssh command everything is fine if you need just one terminal, but I need many terminal sessions not just one because I have to start 3 nodejs processes and some other tasks and need to monitor them while running.

Have searched a lot but haven't found any information about this issue. Over vagrant ssh can't event use ubuntu server virtual terminals ttys-


Solution

The easiest is to have as many terminal session open on your host than you need and for each you can run vagrant ssh.

If you want to have a single vagrant ssh running, you can look at software like screen or tmux



Answered By - Frederic Henri