总下载量:61 k 安装大小:96 k Is this ok [y/d/N]: y Downloading packages: 警告:/var/cache/yum/x86_64/7/base/packages/ftp-0.17-67.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY ftp-0.17-67.el7.x86_64.rpm 的公钥尚未安装 ftp-0.17-67.el7.x86_64.rpm | 61 kB 00:00:00 从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 检索密钥 导入 GPG key 0xF4A80EB5: 用户ID : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" 指纹 : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 软件包 : centos-release-7-9.2009.0.el7.centos.x86_64 (@anaconda) 来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 是否继续?[y/N]:y Running transaction check Running transaction test Transaction test succeeded Running transaction 正在安装 : ftp-0.17-67.el7.x86_64 1/1 验证中 : ftp-0.17-67.el7.x86_64 1/1
已安装: ftp.x86_64 0:0.17-67.el7
完毕!
5、使用客户机连接ftp服务器
这篇文章是由Siralop写的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[siralop@localhost ~]$ ftp 192.168.20.2 Connected to 192.168.20.2 (192.168.20.2). 220 (vsFTPd 3.0.2) Name (192.168.20.2:siralop): ftp 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 (192,168,20,2,180,185). 150 Here comes the directory listing. drwxr-xr-x 2 0 0 6 Jun 09 2021 pub 226 Directory send OK. ftp>
6、在服务器上新建文件
这篇文章是由Siralop写的
1 2 3 4
[apiclo@bogon pub]$ echo "This file is created by Siralop" | sudo tee ftp.txt This file is created by Siralop [apiclo@bogon pub]$
7、在客户机上查看文件
这篇文章是由Siralop写的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
ftp> cd pub 250 Directory successfully changed. ftp> ls 227 Entering Passive Mode (192,168,20,2,47,0). 150 Here comes the directory listing. -rw-r--r-- 1 0 0 32 Feb 27 07:23 ftp.txt 226 Directory send OK. ftp> get ftp.txt local: ftp.txt remote: ftp.txt 227 Entering Passive Mode (192,168,20,2,34,39). 150 Opening BINARY mode data connection for ftp.txt (32 bytes). 226 Transfer complete. 32 bytes received in 5.1e-05 secs (627.45 Kbytes/sec) ftp>
[siralop@localhost ~]$ ftp 192.168.20.2 Connected to 192.168.20.2 (192.168.20.2). 220 (vsFTPd 3.0.2) Name (192.168.20.2:siralop): stu2 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files.