How to find the Vagrant IP?

前端 未结 12 1449
余生分开走
余生分开走 2021-01-30 08:17

I have been developing an automated deployment using Capistrano and using Vagrant as my test virtual server.

The thing is, I need the IP of Vagrant to \"ssh

12条回答
  •  独厮守ぢ
    2021-01-30 09:10

    Terminating a connection open with vagrant ssh will show the address, so a dummy or empty command can be executed:

    $ vagrant ssh -c ''
    Connection to 192.168.121.155 closed.
    

提交回复
热议问题