How to exit SSH of vagrant in terminal
Assuming the run
command stays running on the foreground, you can most probably end it with CTRL+C
. Then the shell (and SSH) session can be terminated with exit
or CTRL+D
.
If you want to ssh to the machine you can do following:
vagrant ssh
or
homestead ssh
If you are in the machine you can run the command exit
to get out of it.