文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>如何在ubuntu 10.04上使用sftp协议sshfs做mount到..

如何在ubuntu 10.04上使用sftp协议sshfs做mount到..

时间:2010-10-09  来源:gliethttp

1. 安装ssh
sudo apt-get install openssh-server openssh-client
2. 安装sshfs(等效于windows上的sftpdrive)
sudo apt-get install sshfs
3. 修改读写权限
sudo chmod 755 /etc/fuse.conf
4. 创建mount目录
mkdir ~/gliethttp_server
5. 使用sshfs挂载远端服务器的根目录到本地目录gliethttp_server
sshfs [email protected]:/ ~/gliethttp_server/
6. 我们可以让系统登录时自动完成(如下式虚拟机中的ubuntu 10.04的/etc/rc.local配置文件内容,其中luther为ubuntu 10.04虚拟机中用户,该用户.ssh下包含了自动id_rsa文件,可以自动登录192.168.1.1)
mount -t vboxsf d /d
mount -t vboxsf f /f
su luther -c 'sshfs [email protected]:/home/gliethttp /g'
exit 0
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载