1 / 14

FTP

FTP. 12-3 FTP 檔案傳輸軟體 25 架設 FTP 伺服器. gFTP. 圖形模式的 FTP 軟體 應用程式 / 網際網路 /gFTP 遠端 / 開啟 URL. ncftp . 文字模式的 FTP 指令. ftp ( file transfer protocol). anonymous ftp open hostname  建立連結 close 結束連結 pwd , ls , cd 執行本地指令加  ! 不適用於 cd cd ..(remote) lcd .. (local). 檔案傳輸型態. 型態 文字模式 ascii

lamar
Télécharger la présentation

FTP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FTP 12-3 FTP檔案傳輸軟體 25 架設FTP伺服器

  2. gFTP • 圖形模式的FTP軟體 • 應用程式/網際網路/gFTP • 遠端/開啟URL

  3. ncftp • 文字模式的FTP指令

  4. ftp(file transfer protocol) • anonymous ftp • open hostname 建立連結 • close 結束連結 • pwd,ls,cd • 執行本地指令加 ! 不適用於cd cd ..(remote) lcd .. (local)

  5. 檔案傳輸型態 • 型態 • 文字模式ascii • 二進位模式binary • 上傳 put mput • 下載 get mget

  6. 使用到的 port: • 命令通道的 ftp (預設為 port 21 ) • 主要是用在接收 Client 端下達的命令之用,例如顯示目錄內的檔案內容 dir 以及上傳下載 (put, get) 等等的指令 • 主要接受來自 Client 端的主動連線 • 資料傳輸的 ftp-data (預設為port 20)。 • 在資料傳輸的時候才會建立的一個連線 • 主動連線至 Client 端呢!

  7. Port 21 上傳、下載檔案 Port 20 FTP Clinet NcFTP CuteFtp WsFtp FTP Server Vsftpd WU-ftpd ProFTPd

  8. 啟動FTP伺服器 • ntsysv • /etc/rec./init.d/vsftpd start • ftp localhost

  9. 安裝FTP伺服器 • mount /mdiea/cdrom • cd /media/cdrom/Fedora/RPMS • rpm –ivh vsftpd-2.0.1-5.i386.rpm • /etc/rc.d/init.d/vsftpd start • http://vsftpd.beasts.org

  10. FTP使用者類別 • Real • 在此伺服器擁有帳號的使用者,並使用他的帳號登入 • 登入後的目錄為其家目錄 • Restricted • 管理者希望某些擁有帳號的使用者登入後,只能存取其家目錄下的檔案 • /etc/vsftpd.chroot_list指定有那些使用者 • Anonymous • 在此伺服器沒有帳號的使用者,可以anonymous 及電子郵件位址作為帳號及密碼登入 • 登入後的目錄為/var/ftp

  11. FTP使用者類別

  12. 設定restricted使用者帳號 • 預設把系統上所有的使用者帳號都設成real類別,若要將某些帳號改為restricted類別,則 • 修改/etc/vsftpd/vsftpd.con chroot_list_enable=YES • 將帳號加入/etc/vsftpd.chroot_list tony mary • 重新啟動 /etc/rc.d/init.d/vsftpd restart 如此tony與mary登入FTP server時,只能存取其家目錄

  13. 拒絶某些帳號使用伺服器 • /etc/vsftpd.user_list預設用來指定”不允許”哪些使用者登入,此檔的預設值是一些系統帳號 • P25-7

  14. 該匿名登入的使用者可以上傳檔案 • 建立上傳目錄 mkdir /var/ftp/upload chown ftp.ftp /var/ftp/uypload chmod 2755 /var/ftp/upload • 修改/etc/vsftpd/vsftpd.conf anonmous_enable=YES (開放anonymous登入) anon_other_write_enable=YES anon_upload_enable=YES (remove #) anon_mkdir_write_enable=YES (remove#) anon_umask=022 (add this line) • /etc/rc.d/init.d/vsftpd restart

More Related