远程AIX 5.3,本地Windows XP,需要传输文件到AIX上
目前具备root权限,telnet功能。
在CMD下FTP问题:
C:\Documents and Settings\dota>ftp 192.168.1.66
> ftp: connect :未知错误号
ftp> quit
有未知错误号,怀疑AIX上的FTP服务没有启动
在AIX上:
# vi /etc/inetd.conf
#ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
#telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a
#shell stream tcp6 nowait root /usr/sbin/rshd rshd
#kshell stream tcp nowait root /usr/sbin/krshd krshd
#login stream tcp6 nowait root /usr/sbin/rlogind rlogind
#klogin stream tcp nowait root /usr/sbin/krlogind krlogind
去掉FTP服务的#号
Wq保存退出
# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.
回到CMD上尝试,问题依旧。
没有报具体的错误号,怀疑和防火墙有关,现状是windows防火墙服务停止了,但是防火墙的驱动级别的内核依然似乎有作用,于是启用防火墙,再试,允许此访问
C:\Documents and Settings\dota>ftp 192.168.1.66
Connected to 192.168.1.66.
220 shipf FTP server (Version 4.2 Sun Aug 8 08:57:21 CDT 2010) ready.
User (192.168.1.66:(none)): root
530 User root access denied.
Login failed.
ftp> quit
221 Goodbye.
C:\Documents and Settings\dota>ftp 192.168.1.66:21
Unknown host 192.168.1.66:21.
ftp> quit
C:\Documents and Settings\dota>ftp 192.168.1.66
Connected to 192.168.1.66.
220 shipf FTP server (Version 4.2 Sun Aug 8 08:57:21 CDT 2010) ready.
User (192.168.1.66:(none)): root
530 User root access denied.
Login failed.
ftp> quit
221 Goodbye.
报530错误,继续查用户
怀疑是FTP用户问题
# more /etc/ftpusers
root
#
# vi /etc/ftpusers
root
原来将root拒绝了,去掉,wq保存退出
CMD再试
C:\Documents and Settings\dota>ftp 192.168.1.66
Connected to 192.168.1.66.
220 shipf FTP server (Version 4.2 Sun Aug 8 08:57:21 CDT 2010) ready.
User (192.168.1.66:(none)): root
331 Password required for root.
Password:
230-Last unsuccessful login: Tue May 3 22:26:42 BEIDT 2011 on /dev/pts/0 from 1
92.168.1.68
230-Last login: Tue Jul 26 13:18:08 BEIDT 2011 on /dev/pts/0 from 192.168.1.68
230 User root logged in.
ftp> quit
221 Goodbye.
访问成功,试试FTP软件连接
状态: 正在连接 192.168.1.66:21...
状态: 连接建立,等待欢迎消息...
响应: 220 shipf FTP server (Version 4.2 Sun Aug 8 08:57:21 CDT 2010) ready.
命令: USER root
响应: 331 Password required for root.
命令: PASS ****
响应: 230-Last unsuccessful login: Tue May 3 22:26:42 BEIDT 2011 on /dev/pts/0 from 192.168.1.68
响应: 230-Last login: Tue Jul 26 16:58:22 BEIDT 2011 on ftp from ::ffff:192.168.1.68
响应: 230 User root logged in.
命令: SYST
响应: 215 UNIX Type: L8 Version: BSD-44
命令: FEAT
响应: 500 'FEAT': command not understood.
状态: 已连接
状态: 读取目录列表...
命令: PWD
响应: 257 "/" is current directory.
命令: TYPE I
响应: 200 Type set to I.
命令: PASV
响应: 227 Entering Passive Mode (192,168,1,66,134,39)
命令: LIST
响应: 150 Opening data connection for /bin/ls.
响应: 226 Transfer complete.
状态: 列出目录成功
成功!下一步,将软件介质传上去