FTP服务器存在的意义:IDC服务器同本地电脑之间的数据交换。
FTP服务器与生产服务器和本地电脑的关系:FTP服务器同时配置了两个IP,一个是内网IP(172.24.23.127,用于连接生产服务器),另一个是外网IP(110.75.1.99,用于连接本地电脑),这两个IP对应用的是就是同一台FTP服务器。
操作(以从生产服务器a.cm1取a.log日志到要机为例):
1.
$ssh a.cm3(登录需要取日志服务器)
$ftp 172.24.23.127(用内网IP)
Connected to 172.24.23.127.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (172.24.23.127:root): pubftp
331 Please specify the password.
Password: look
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>put a.log
2.
在本地电脑上执行:
>ftp 110.75.1.99(用外网IP)
Connected to 110.75.1.99.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (110.75.1.99:root): pubftp
331 Please specify the password.
Password: look
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>get a.log