56twe 发表于 2014-9-12 09:22:29

FTP服务器配置

实验01:配置FTP服务器
[*]实验目标
配置FTP服务器
[*]实验步骤
一.检查vsftpd软件包是否安装# rpm -q vsftpdpackage vsftpd isnot installed二.查找软件包# cd /misc/cd/Server/# ls *vsftpd*vsftpd-2.0.5-28.el5.x86_64.rpm三.安装软件包# rpm -ivh vsftpd-2.0.5-28.el5.x86_64.rpm warning:vsftpd-2.0.5-28.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing...               ###########################################    1:vsftpd               ###########################################四.重新启用vsftpd服务# service vsftpd restart关闭 vsftpd:                                              [失败]为 vsftpd 启动 vsftpd:                                 [确定]# service vsftpd restart关闭 vsftpd:                                              [确定]为 vsftpd 启动 vsftpd:                                 [确定]# chkconfig vsftpd on# ls -lh /etc > /var/ftp/pub/etc.txt五.新建用户并设置密码# useradd kaka# echo "redhat" | passwd --stdin kakaChanging passwordfor user kaka.passwd: allauthentication tokens updated successfully.六.客户端测试进入服务器# ftp 192.168.10.253Connected to192.168.10.253.220 (vsFTPd 2.0.5)530 Please loginwith USER and PASS.530 Please loginwith USER and PASS.KERBEROS_V4rejected as an authentication typeName(192.168.10.253:root): ftp331 Please specifythe password.Password:230 Loginsuccessful.Remote system typeis UNIX.Using binary modeto transfer files.ftp> cd pub250 Directorysuccessfully changed.ftp> ls227 EnteringPassive Mode (192,168,10,253,172,46)150 Here comes thedirectory listing.-rw-r--r--    1 0       0         11629 Sep 11 20:34etc.txt226 Directory sendOK.ftp>get etc.txt (下载文件)local: etc.txtremote: etc.txt227 EnteringPassive Mode (192,168,10,253,33,163)150 Opening BINARYmode data connection for etc.txt (11629 bytes).226 File send OK.11629 bytesreceived in 0.00018 seconds (6.5e+04 Kbytes/s)ftp> !lsanaconda-ks.cfgDesktop etc.txtinstall.loginstall.log.syslogftp> putinstall.loglocal: install.logremote: install.log227 EnteringPassive Mode (192,168,10,253,88,62)550 Permissiondenied.ftp> quit221 Goodbye.# lftp 192.168.10.253(使用lftp进入服务器)lftp192.168.10.253:~> user kaka(输入用户名以及密码)      口令:lftpkaka@192.168.10.253:~> put install.log (上传文件)33139 bytestransferredlftpkaka@192.168.10.253:~> quit
[*]问题和经验总结
故障现象:# service vsftpd restart关闭 vsftpd:                                              [失败]为 vsftpd 启动 vsftpd:                                 [失败]解决办法:检查软件包的安装,重装软件包
页: [1]
查看完整版本: FTP服务器配置