12月11日任務
15.4 xshell使用xftp傳輸文件
15.5 使用pure-ftpd搭建ftp服務linux
1.xshell使用xftp傳輸文件shell
示例一:xshell使用sftp傳輸文件vim
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
- 這裏能夠定義get的文件放在Windows什麼位置
![](http://static.javashuo.com/static/loading.gif)
示例二:使用xftp傳輸文件測試
- Ctel+Rly+F 快捷鍵,會有以下提示框,點擊下載,跳轉到下載頁面
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
- 雙擊文件就會下載到桌面上,或者直接拖過去也行
- 爲了方便你們安裝,會將下載鏈接放到r.aminglinux.com 上
2. 使用pure-ftpd搭建ftp服務spa
![](http://static.javashuo.com/static/loading.gif)
示例一:3d
- yum install -y epel-release 先安裝這個擴展源,才能找到下面安裝的包,來安裝
- yum install -y pure-ftpd
- vim /etc/pure-ftpd/pure-ftpd.conf//找到pureftpd.pdb這行,把行首的#刪除 ,把它的密碼指定文件路徑打開
![](http://static.javashuo.com/static/loading.gif)
- systemctl stop vsftpd 由於同時是使用21端口,因此要關閉vsftpd
- systemctl start pure-ftpd 開啓ftpd
- mkdir /data/ftp 建立一個測試目錄
- useradd -u 1010 pure-ftp 建立一個普通的用戶
- chown -R pure-ftp:pure-ftp /data/ftp 更改屬組屬主
- pure-pw useradd ftp_usera -u pure-ftp -d /data/ftp 建立一個普通用戶,-u 指定系統的用戶是誰,-d 指定虛擬用戶的家目錄目錄,最後執行,設置一個密碼
![](http://static.javashuo.com/static/loading.gif)
- pure-pw help 查看pure-pw 支持哪些用法
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
- pure-pw list/userdel/usermod/passwd 列出密碼文件