Linux与Window文件共享

Ubuntu中访问windows文件: Samba

1. 在Windows设置网络共享, 而且还必须有一个拥有访问共享权限的用户.

2. Linux下运行   

    sudo mount –t cifs –o username=test,password=password123 //192.168.1.101/ShareFolder /mht

    该命令运行之后, 在/mht目录中就可以发现Windows共享文件夹中的文件了.

    似乎中文路径的文件和文件夹访问都会有问题.

3. 取消映射可以使用命令

    sudo umount /mnt

 

Windows中访问Ubuntu Linux文件: 使用WinSCP软件就可以了. 非常方便.

在Linux下,  运行命令sudo apt-get install openssh-server来安装secure shell server安装并启动起来.

这个ssserver是使用WinSCP所必需的.

小技巧, 当不知道具体要安装什么的时候, 使用sudo apt-cache search all|grep ssh 命令查询所有包之中含有ssh三个字母的包.

sudo passwd命令来解除对root用户的锁定.

posted on 2009-07-24 15:07  中道学友  阅读(3214)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上