1 / 17

FTP (File Transfer Protocol)

FTP (File Transfer Protocol). elaborate@sparcs.org 안병욱 (07 ) 2008.1.11. 목차. FTP 의 개념 PASSIVE 모드와 ACTIVE 모드 vsftp vsftp 설치 vsftp 설정하기 vsftp 의 시작과 종료 application. 1. FTP 의 개념. File Transfer Protocol - 인터넷 ( 네트워크 ) 를 이용하여 파일을 주고 받는 데에 사용 된다 .

Télécharger la présentation

FTP (File Transfer Protocol)

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(File Transfer Protocol) elaborate@sparcs.org 안병욱(07) 2008.1.11

  2. 목차 • FTP의개념 • PASSIVE모드와 ACTIVE 모드 • vsftp • vsftp설치 • vsftp설정하기 • vsftp의 시작과 종료 • application

  3. 1. FTP의 개념 • File Transfer Protocol - 인터넷(네트워크) 를 이용하여 파일을 주고 받는 데에 사용 된다. • 기본적으로 서버의 20번 포트는 data의 소스포트이며 21번 포트는 command를 주고 받는 포트이다. • FTP로 접속하는 방법에는 크게 PASSIVE 와 ACTIVE(non PASSIVE) MODE 가 있다. • P2P와는 다르다.

  4. 2-3.PASSIVE 모드와 ACTIVE 모드 • ((Sever와 Client))의 port 연결 방법의차이 • ACTIVE모드 - 처음 접속할 때 Client는 (자신의 임의의 port)로 (Server의 21번 port)로 접속한다. Server Client 임의의 port 21번 port 접속하겠습니다.

  5. 2-3.PASSIVE 모드와 ACTIVE 모드 • ACTIVE모드 - Client 에서 21번 port로 Server가 Client에 접속할 port의 번호를(command) 를보낸다. - Client는 ftp Server의 접속을 기다린다. Server Client 임의의 port 21번 port 접속하겠습니다. xxxx으로 접속해주세요

  6. 2-2.PASSIVE 모드와 ACTIVE 모드 • ACTIVE 모드 - Server는 다시 Client에 command로 받은 port로 다시 접속한다. - 그리고 20port에서 data를 Client가 접속한 포트로 전송한다. data 지정된 port Client 20번 port 접속했어요. 임의의 port 21번 port

  7. 2-1.PASSIVE 모드와 ACTIVE 모드 • PASSIVE 모드 - 처음 접속할 때 Client는 (자신의 임의의 port)로 (Server의 21번 port)로 접속한다. Server Client 임의의 port 21번 port 접속하겠습니다.

  8. 2-2.PASSIVE 모드와 ACTIVE 모드 • PASSIVE 모드 - Server에서 다시 접속하기를 요구하는 port의 번호(command)를 Client로 보낸다. - Server는 Client의 접속을 다시 기다린다. Server Client 다른 데로 접속해 주세요 임의의 port 21번 port 접속하겠습니다.

  9. 2-2.PASSIVE 모드와 ACTIVE 모드 • PASSIVE 모드 - Client는 다시 Server에 command로 받은 port로 다시 접속한다. - 그리고 20port를소스로 Client가 접속한 포트로 data를 전송한다. data Client 20번 port 임의의port 다른 임의의 port 21번 port 접속했어요.

  10. 3-1. vsftp • ftp 중에서 보안을 더 강조한 ftp system 이다. • 그 외에도 여러 종류의 ftp 가 있으나 이 프레젠테이션에서는 vsftp만을 설명.

  11. 3-2. vsftpinstall (Debian일 때) • $ sudo apt-get install vsftpd • # apt-getinstall vsftpd

  12. 3-4. vsftpconfig

  13. 3-5. vsftpconfig

  14. 3-6. vsftpconfig

  15. 3-6. vsftpconfig

  16. 4. vsftp시작과 종료 • 시작 • - $ sudo /etc/init.d/vsftpd start • - # /etc/init.d/vsftpdstart • 종료 • - $ sudo /etc/init.d/vsftpd stop • - # /etc/init.d/vsftpdstop • 재시작 • - $ sudo /etc/init.d/vsftpd restart • - # /etc/init.d/vsftpdrestart

  17. 5. Application Example • http://howto.gumph.org/content/setup-virtual-users-and-directories-in-vsftpd/ • local 계정을 사용하지 않고 root 지정한 사용자를 직접 설정하여 그 사용자만 로그인 할 수 있게 만드는 application

More Related