### **sftp上传下载命令**
> 1登陆远程主机:
> 2 sftp user@host
> 3 针对本机的命令都加上l:
> 4 lcd,lpwd
> 5 将本机文件上传到远程:
> 6 put filename.txt [some/directory]
> 7 将当前文件夹下的文件上传到远程:
> 8 mput *.* // multiple
> 9 下载远程文件到本地:
> 10 get filename.file [some/directory]
> 11 下载目录下所有远程文件到本地:
> 12 mget *.* [some/directory]
> 13 帮助:
> 14 ?
> 15 退出:
> 16 bye/exit/quit
*****
### **scp复制下载命令**
> 1 拷贝本地文件到远程:
> 2 scp filename.txt user@host:some/directory
> 3 拷贝本地文件到远程,使用指定端口:
> 4 scp -P 2234 filename.txt user@host:some/directory
> 5 拷贝多个文件到远程home:
> 6 scp filename1.txt filename2.txt user@host:~
> 7 拷贝远程文件到本地:
> 8 scp user@host:directory/filename.txt /directory
> 9 拷贝远程文件夹到本地:
> 10 scp -r user@host:directory/folder .
> 11 拷贝远程文件到远程:
> 12 scp user@host1:directory/filename.txt user@host1:directory
****
> ### ***windows下使用winScp可以实现与Linux进行上传下载***
*****
### ***防火墙操作***
centos7
```
#查看防火墙
firewall-cmd --state
#停止防火墙
systemctl stop firewalld.service
#禁止防火墙开机启动
systemctl disable firewalld.service
```
deepin
```
/etc/init.d/ufw stop
/etc/init.d/ufw start
```