命令1:
[root@123 admin]# wget ftp://admin:admin@目标IP:端口//路径/文件名
--2020-07-29 11:14:33-- ftp://admin:admin@目标IP:端口/路径/文件名
=> ‘文件名’
Connecting to 目标IP:端口... connected.
Logging in as admin ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) 路径 ... done.
==> SIZE 文件名 ... 79131
==> PASV ... done. ==> RETR 文件名 ... done.
Length: 79131 (77K) (unauthoritative)
100%[=====================================================================================================================>] 79,131 328KB/s in 0.2s
2020-07-29 11:14:34 (328 KB/s) - ‘文件名’ saved [79131]
命令2:
[root@123 admin]# ftp 目标IP:端口
Connected to 目标IP (目标IP).
220 (vsFTPd 2.2.2)
Name (目标IP:root): admin
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (目标IP:端口,60,221)
150 Here comes the directory listing.
...
具体文件和文件目录
...
ftp> lcd /opt/wacos/
Local directory now /opt/wacos
ftp> get 文件名
local: 文件名 remote: 文件名
227 Entering Passive Mode (目标IP,92,223)
150 Opening BINARY mode data connection for 文件名 (79131 bytes).
226 Transfer complete.
79131 bytes received in 0.205 secs (385.18 Kbytes/sec)
ftp> quit
221 Goodbye.