1. 查看系统是否安装有ftp应用:
IBM AIX操作系统在安装完之后会默认安装ftp,查看/etc/inetd.conf文件,会有如下行
ftp stream tcp6 nowait root /usr/sbin/ftpd ftp
# cat /etc/inetd.conf
# cat /etc/inetd.conf | grep ftp
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
#tftp dgram udp6 SRC nobody /usr/sbin/tftpd tftpd -n
这表明系统会默认启动AIX自带的ftpd
2. 查看ftp的状态:
# lssrc -t ftp
Service Command Description Status
ftp /usr/sbin/ftpd ftpd active
3. 启动ftp
# startsrc -t ftp
0513-124 The ftp subserver has been started.
# startsrc -s tcpip
0513-085 The tcpip Subsystem is not on file.
#
4. 关闭ftp服务
# stopsrc -t ftp
0513-127 The ftp subserver was stopped successfully.
5. 开启ftp服务
# startsrc -t ftp
0513-124 The ftp subserver has been started.
6. 在服务器上配置ftp的账户:
# passwd ftpuser
Changing password for "ftpuser"
ftpuser's New password:
Enter the new password again:
7. 在服务器上切换到ftpuser用户:
# su - ftpuser
$
8. 修改此用户的密码:
ftp服务规定的,第一次登陆必须修改密码,否则从ftp客户端登陆不了服务器。
$ passwd
Changing password for "ftpuser"
ftpuser's Old password:
ftpuser's New password:
Enter the new password again:
9. 给ftpuser下载文件的相关权限:
# cd ..
# ls
client_collect hacmp pcixscsi sissas testcase
general other script.log snap.pax.Z
# chmod 777 snap.pax.Z
#
10. 从windows客户端登陆服务器:
C:\Documents and Settings\pcitlyi>ftp 10.76.16.20
Connected to 10.76.16.20.
220 HCBA-DB-2 FTP server (Version 4.2 Wed Jun 3 15:43:49 CDT 2009) ready.
User (10.76.16.20:(none)): ftpuser
331 Password required for ftpuser.
Password:
230-Last unsuccessful login: Wed Mar 3 08:32:50 BEIST 2010 on ftp from LHNP-BAC
KUP
230-Last login: Fri Nov 1 01:54:11 BEIST 2013 on ftp from LHNP-BACKUP
230 User ftpuser logged in.
ftp>
ftp>
ftp>
11. 开始传输数据:
11.1 切换本地目录到D盘(把下载的文件存储到D盘)
ftp> lcd D:\
Local directory now D:\.
11.2 采用二进制下载:
ftp> bin
200 Type set to I.
11.3 下载文件:
ftp> get /tmp/ibmsupt/snap.pax.Z
200 PORT command successful.
150 Opening data connection for /tmp/ibmsupt/snap.pax.Z (1650746 bytes).
226 Transfer complete.
ftp: 收到 1650746 字节,用时 0.16Seconds 10581.71Kbytes/sec.
ftp>
12. 退出ftp客户端:
ftp> quit
221 Goodbye.
13. 退出cmd界面:
exit
14. 找到下载的文件:
到D盘,看到已下载的snap.pax文件:
文件名:snap.pax
15. 大功告成!!!!
阅读(7700) | 评论(0) | 转发(0) |