瀏覽模式: 普通 | 列表

ncftp 上傳、刪除檔案

ncftp 中的 ncftpput 指令可用來上傳

參數說明:

-R - 於上傳目錄的時後用的到,example: ncftpput -m -u ftpuser -p ftppassword serverIP /目的根目錄/ 來源目錄/
-m - 當目的端無此目錄,來源端上傳檔案時建立此目錄,example: ncftpput -m -u ftpuser -p ftppassword serverIP /目的根目錄/不存在的目錄 來源檔案
-z - 要續傳
-Z - 不要續傳(預設)


刪除檔案的方式

   編輯檔案: vi rm.txt (內容如下)

cd 某目錄
rm -r 某檔案
   然後執行  

[閱讀全文]

標籤: ftp ncftp ncftpput

ftp 伺服器 proftpd 的 xferlog.legacy 記錄說明

attachments/201001/7330245882.png  (點它放大)

1: 連線開紿的時間
2: 傳這個檔所花的時間(秒)
3: client IP
4: 檔案大小
5: 檔案完整路徑名稱
6: 傳輸類型,a=ascii、b=binary
7: 特殊行為標記,C=壓縮、U=未壓縮、T=tar、_=沒有特殊行為
8: 傳輸方向,i=上傳、o=下載、d=刪除
9: r=系統用戶、a=anonymous(匿名)
10: ftp帳號名稱
11:
12: 認證方式,0=沒有 ???
13: *=沒有認證用戶ID ???
14: 傳輸完成狀態,c=完成、i=沒有完成

ref: http://www.unixresources.net/linux/clf/web/archive/00/00/46/83/468369.html/%22">http://ssorc.tw/%22http://www.unixresources.net/linux/clf/web/archive/00/00/46/83/468369.html/%22

標籤: ftp log 記錄 proftpd

FTP + Pure-FTPd

[1]. 安裝套件 install pure-ftpd.xx.rpm

[2]. 啟動 /etc/init.d/pure-ftpd start

[3]. 測試 telnet localhost 21
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 15:03. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
[4]. pure-ftpd設定檔 vi /etc/pure-ftpd/pure-ftpd.conf
# 不允許匿名

[閱讀全文]

標籤: ftp

FTP 伺服器 - Proftpd

1. apt-get install proftpd

2. vi /etc/proftpd.conf

ServerName                 "ProFTPD server"                 # 顯示在Client端的ftp軟體的基本訊息
ServerIdent                  on "FTP Server ready."
ServerAdmin               root@localhost
ServerType                  standalone                            # server獨立啟動

DefaultServer              on                                          # 當設定到兩個ip或虛擬主機時,才設成off
AccessGrantMsg         "User %u logged in."

[閱讀全文]

標籤: ftp proftpd