Linuxlinux

Linux7_ ftp服务器(2):实名登录和文件上传下载

2019-05-21  本文已影响6人  Y大宽

1 实名登录ftp服务器

ftp+服务器IP
输入服务器的用户名密码

本地Ubuntu系统登录服务器

kelly@DESKTOP-MRA1M1F:~$ ftp 210.37.68.128
Connected to 210.37.68.128.
220 (vsFTPd 3.0.3)
Name (210.37.68.128:kelly): pc
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

2文件的上传和下载

!如果用的windows子系统Ubuntu,那么此处要关闭windows的防火墙,否则没法进行连接。

2.1文件上传put file

注意:是本地电脑家目录下的文件(不是文件夹,若文件夹需要压缩)上传到服务器。如果想上传其他目录内容,则先cd到其他目录,然后登录服务器即可。

kelly@DESKTOP-MRA1M1F:~$ ftp 210.37.68.128
Connected to 210.37.68.128.
220 (vsFTPd 3.0.3)
Name (210.37.68.128:kelly): pc
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put hello
local: hello remote: hello
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.

2.2文件下载 get file

ftp> get testtest
local: testtest remote: testtest
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for testtest (0 bytes).
226 Transfer complete.
上一篇下一篇

猜你喜欢

热点阅读