How to find the Vagrant IP?

前端 未结 12 1267
余生分开走
余生分开走 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:09

    I know this post is old but i want to add a few points to this!

    you can try

    vagrant ssh -c "ifconfig | grep inet" hostname 
    

    this will be easy if you have setup a name to your guests individually!

提交回复
热议问题