linux - 将文件复制到 vagrant 远程环境

标签 linux shell remote-access vagrant sshfs

我正在通过 vagrant 处理远程代码库开发环境和我用的sshfs用于在我的本地主机上安装远程点,如下所示:

sshfs hostname:vagrant_remotemountpoint mountpoint

要将文件复制到 vagrant vagrant_remotemountpoint,首先我通过 nautilus 打开 mountpoint,然后将文件粘贴到其中。现在我喜欢使用 shell 命令来完成这个过程。

有人做过这样的努力吗?谢谢。

最佳答案

您是否尝试过在 shell 上cp somefile mountpoint?使用 sshfs,mountpoint 应显示为系统上的普通目录。

关于linux - 将文件复制到 vagrant 远程环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15337950/

相关文章:

mysql - 从位于 (heroku.com) 的应用程序连接到位于 (pythonanywhere.com) 的 MySQL 数据库

linux - 错误 : no version information available

linux - PATH 和 COMPILER_PATH 之间的区别

c - 如何在linux中用c写一个http1.0的代理服务器?

linux - 什么是报价命令?

linux - Shell 用户提示 (Y/n)

bash - 列出高于特定数字的数字文件

python - 通过python脚本设置shell环境变量

.net - 检查远程 session

deployment - 如何在 PhpStorm 项目中包含 public_html 兄弟文件夹?