ssh命令
远程登录
$ ssh user@host
scp命令
scp是 secure copy的缩写, scp是linux系统下基于ssh登陆进行安全的远程文件拷贝命令。
$ scp 源文件路径 user@host:/目标路径(必须是绝对路径)
samba
Linux 和 Windows 系统中进行文件共享
# 安装
$ yun install samba
// or
$ apt-get install samba (ubuntu)
# 配置
$ cd /etc/samba
$ vim smb.conf (配置文件)
[homes]
path = (共享文件路径设置)
creat mask = 0644 (授权)
(创建盐码,后三位代表权限;第一位代表文件所有者的权限、第二位用户组、第三位其他用户)
$ systemtl start smb
// or
$ service smb start
网友评论