- ftp端口是默认的21端口时
格式: ftp 服务器IP地址
[root@uhwlgegh1v326i ~]# ftp 172.31.0.15
Connected to 172.31.0.15 (172.31.0.15).
220 (vsFTPd 3.0.2)
Name (172.31.0.15:root): linchunpeng # 账号
331 Please specify the password. # 密码
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
- 使用指定端口连接ftp服务器
格式: ftp
open 服务器IP 端口
[root@uhwlgegh1v326i ~]# ftp
ftp> open 172.31.0.15 21
Connected to 172.31.0.15 (172.31.0.15).
220 (vsFTPd 3.0.2)
Name (172.31.0.15:root): linchunpeng
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>