How to copy file from a Vagrant machine to localhost

后端 未结 7 612
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 13:53

I want to copy a local file from a Vagrant machine to my localhost, but I am getting an error message:

ssh: connect to host 127.0.0.1

7条回答
  •  不要未来只要你来
    2021-01-30 14:04

    Additional tools like scp or cat may not be necessary. Frederick Henri covered it here.

    Essentially, cp [file] /var/www/[your vm]/.vagrant will copy the file to the .vagrant folder at your project root, where you can see and move the file in your desktop OS.

提交回复
热议问题