一.gssftp,vsftp与xinetd
1.xinetd是超级守护程序,管理着许多服务.所以可以通过service xinetd start启动。
2.gssftp是Redhat linux企业版自带的FTP工具。包含在/etc/xinetd/gssftp下。提供krb5验证机制。gssftp也是依附于xinetd服务,配置文件即
/etc/xinetd.d/gssftp,将disable设置为no且server_args设置为 -l,即可启用。gssftp也是RedHat企业版自带的ftp工具
3.vsftp也是FTP服务器软件,功能比gssftp完备。也是推荐使用的FTP服务器软件。它是独立守护
程序。推荐使用,号称very safe ftp,主要配置文件是:/etc/vsftpd/vsftpd /etc/vsftpd.ftpusers /etc/vsftpd.user_list 主要用于用户的访问控制。
建议将userlist_deny=YES。更改完配置service vsftpd restart,即可
二.本机FTP测试
E:\soft\DB\dataBase>ftp
ftp> status
Not connected.
Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On
Debugging: Off ; Hash mark printing: Off .
ftp> open 192.168.128.128
Connected to 192.168.128.128.
220 localhost.localdomain FTP server (Version 5.60) ready.
User (192.168.128.128:(none)): lileizhang
331 Password required for lileizhang.
Password:
230 User lileizhang logged in.
ftp> status
Connected to 192.168.128.128.
Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On
Debugging: Off ; Hash mark printing: Off .
ftp> !cd
E:\soft\DB\dataBase
ftp> pwd
257 "/home/lileizhang" is current directory.
ftp> put 12.5_linux_x32.tgz
200 PORT command successful.
150 Opening ASCII mode data connection for 12.5_linux_x32.tgz.
226-WARNING! 2840059 bare linefeeds received in ASCII mode
File may not have transferred correctly.
226 Transfer complete.
ftp: 发送 752085640 字节,用时 127.78Seconds 5885.69Kbytes/sec.
ftp> quit
221 Goodbye.