ubuntu服务器为使用方便搭建

复制目录

  • 将本地目录拷贝到远程

                  scp -r 目录名 用户名@计算机IP或者计算机名称:远程路径

  • 从远程将目录拷回本地

                 scp -r 用户名@计算机IP或者计算机名称:目录名 本地路径

使用sshfs挂载远程主机文件到linux

  • sshfs <username>@<ipaddress>:/remotepath ~/remoteserv
  • sshfs挂载的时候权限问题: 需要修改 /etc/fuse.conf ,把user_allow_other打开

猜你喜欢

转载自www.cnblogs.com/ranjiewen/p/10079834.html
今日推荐