欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > Linux68 FTP 测试 上传下载

Linux68 FTP 测试 上传下载

2025/6/9 14:13:51 来源:https://blog.csdn.net/czhc1140075663/article/details/148513457  浏览:    关键词:Linux68 FTP 测试 上传下载

6.在vi编辑器里,哪个命令能将光标移到第200行?( B )

7.A、200g B、:200 C、g200 D、G200
在这里插入图片描述

假如您需要找出 /etc/my.conf 文件属于哪个包 (package) ,您可以执行( D )C

A、 rpm -q /etc/my.conf
B、 rpm -requires /etc/my.conf
C、rpm -qf /etc/my.conf
D、 rpm -q | grep /etc/my.conf
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

若要将当前目录中的myfile.txt.tar.gz解压成myfile.txt文件,则实现的命令为(D)C

A、#tar –cf myfile.txt     myfile.txt
B、#tar –jxf myfile.txt.tar.gz 
C、#tar –zxf  myfile.txt.tar.gz    
D、#tar –zcf myfile.txt.tar.gz    myfile.txt 在这里插入图片描述
-zcf -z 对应gzip格式 c表示打包
-zxf x表示解压
-jxf j对应.tar.bz2格式

如果希望保留虚拟机的当前状态,可以使用以下哪种方式?C A

A、快照
B、克隆
C、快照和克隆都可以
D、以上都不对
在这里插入图片描述
答案是A

关于Vim编辑器,以下说法正确的有?ABCD

A、使用Vim编辑器时,默认处于命令模式。在该模式下可以移动光标位置,可以通过快捷键对文件内容进行复制、粘贴、删除等操作。
B、打开文件方式:vim 文件名。
C、在命令模式下,按键:Ctrl + v,进入列(也叫区块)模式。
D、在末行模式下,输入“:wq”,表示保存并且退出。在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

ftp

FTP上传、下载测试

192.168.235.20

Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,243,243).
150 Here comes the directory listing.
226 Directory send OK.
ftp> ls
227 Entering Passive Mode (192,168,235,100,202,176).
150 Here comes the directory listing.
226 Directory send OK.
ftp>

在这里插入图片描述

ftp> cd /
421 Timeout.
ftp> ls
Not connected.
ftp> ls
Not connected.
ftp> cd

在这里插入图片描述

ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,51,220).
553 Could not create file.
ftp>

在这里插入图片描述
在这里插入图片描述

为什么192.168.235.20 kefu无法上传文件到192.168.235.100中的/home/kefu

[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,159,119).
553 Could not create file.
ftp> ll
[root@code caozx26420]# ll -d /home/kefu
drwx------. 3 kefu kefu 78 64 20:57 /home/kef
[root@code caozx26420]# grep -v ^#  /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
[root@code caozx26420]#

/home/kefu 显示对U=kefu有rwx权限,为什root么使用FTP通过kefu登录192.168.235.100后,无法把192.168.235.20中的/root/2.java 上传给192.168.235.100中的/home/kefu文件夹 提示553
在这里插入图片描述

 chroot_local_userIf set to YES, local users will be (by default) placed in a chroot() jail in their home directory after login.  Warning:This option has security implications, especially if the users have upload permission, or shell access. Only  enable  ifyou  know what you are doing.  Note that these security implications are not vsftpd specific. They apply to all FTP dae‐mons which offer to put local users in chroot() jails.

如果设置为YES,本地用户登录后将被(默认)置于其家目录的chroot()监牢中。警告: 此选项涉及安全隐患,特别是当用户拥有上传权限或shell访问权限时。仅应在明确操作后果的情况下启用。需注意这些安全隐患并非vsftpd特有,所有提供将本地用户置于chroot()监牢的FTP守护程序均存在此类问题

allow_writeable_chrootAllow chroot()'ing a user to a directory writable by that user. Note that setting this to YES is potentially  dangerous.For  example,  if  the  user  creates  an  'etc' directory in the new root directory, they could potentially trick the Clibrary into loading a user-created configuration file from the /etc/ directory.Default: NO

allow_writeable_chroot 允许将用户 chroot() 到一个该用户可写的目录。请注意,将此设置为 YES 存在潜在危险。 例如,如果用户在新根目录下创建了一个 ‘etc’ 目录,他们可能会诱骗 C 库从该 /etc/ 目录加载用户创建的配置文件。

allow_writeable_chroot=YES​​

在这里插入图片描述

感觉说法有点问题,计划试一下

为什么/home/kefu的权限会变为drwxrwx— ,属主不就是kefu吗?我对属主kefu对/home/kefu设置权限rwx,应该权限不变啊,还是drwx------
[root@code caozx26420]# ll -d /home/kefu
drwx------. 3 kefu kefu 78 64 20:57 /home/kefu[root@code vsftpd]# setfacl -R -m u:kefu:rwx /home/kefu
[root@code vsftpd]# systemctl restart vsftpd
[root@code vsftpd]# ll -d /home/kefu
drwxrwx---+ 3 kefu kefu 78 64 20:57 /home/kefu

在这里插入图片描述

上传文件需要依赖该文件什么权限

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
和本机是可以互通的(上传、下载)
在这里插入图片描述
下载成功了 235.20下载235.100 /home/kefu中的

[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> get .bashrc
local: .bashrc remote: .bashrc
227 Entering Passive Mode (192,168,235,100,245,10).
150 Opening BINARY mode data connection for .bashrc (231 bytes).
226 Transfer complete.
231 bytes received in 0.00147 secs (157.04 Kbytes/sec)
ftp> bye
221 Goodbye.
您在 /var/spool/mail/root 中有邮件
[root@code ~]# cd /usr/local
[root@code local]# fine -name .bashrc
bash: fine: 未找到命令...
[root@code local]# find -name .bashrc
[root@code local]# cd
您在 /var/spool/mail/root 中有邮件
[root@code ~]# find / -name .bashrc
find: ‘/run/user/1000/gvfs’: 权限不够
/etc/skel/.bashrc
/root/.bashrc
/home/caozx26/.bashrc
/home/mysql/.bashrc
/home/xiaoxiaocao/.bashrc
/home/cao1/.bashrc
/home/cao2/.bashrc
/home/xiaocao/.bashrc
/home/xiao6/.bashrc
/home/tom/.bashrc
/home/jack/.bashrc
/home/cw01/.bashrc
/home/sc01/.bashrc
/home/rs01/.bashrc
/home/boss01/.bashrc
/home/cw02/.bashrc
/home/sc02/.bashrc
/home/rs02/.bashrc
/home/netasha/.bashrc
/home/sarsh/.bashrc
/home/mahei/redhat/harry/.bashrc
/home/OOO/.bashrc
/home/jerry/.bashrc
/home/kefu/.bashrc
/home/kefu2/.bashrc
/rhome/XOAP/.bashrc
/rhome/xiaocao/.bashrc
[root@code ~]# ls
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# ls .
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# cd /root
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ls
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# ls .
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# ls -a
.         alll1            axel-2.4.tar.gz  .bashrc  code     .gvfs                      ok       readme.txt  .wireshark    .xauthLR1vKd
..        anaconda-ks.cfg  .bash_history    bb.conf  .config  initial-setup-ks.cfg       okl      .ssh        .xauth3MzLXm  .Xauthority
2-1.java  app              .bash_logout     .cache   .cshrc   inotify-tools-3.13.tar.gz  .pki     .tcshrc     .xauthfEP05Z  .xauthWcHhod
2.java    axel-2.4         .bash_profile    cc.conf  .dbus    .local                     readme7  .viminfo    .xauthgafSHJ
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ll .bashrc
-rw-r--r--. 1 root root 231 68 20:04 .bashrc
[root@code ~]#

在这里插入图片描述

331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> get steam.dll
local: steam.dll remote: steam.dll
227 Entering Passive Mode (192,168,235,100,102,67).
550 Failed to open file.
ftp> get Steam.dll
local: Steam.dll remote: Steam.dll
227 Entering Passive Mode (192,168,235,100,159,211).
150 Opening BINARY mode data connection for Steam.dll (519264 bytes).
226 Transfer complete.
519264 bytes received in 0.00212 secs (244474.56 Kbytes/sec)
ftp> put /root/bb.conf
local: /root/bb.conf remote: /root/bb.conf
227 Entering Passive Mode (192,168,235,100,30,101).
553 Could not create file.
ftp> put cc.conf
local: cc.conf remote: cc.conf
227 Entering Passive Mode (192,168,235,100,223,243).
150 Ok to send data.
226 Transfer complete.
6291456 bytes sent in 0.0763 secs (82422.26 Kbytes/sec)
ftp> put bin
local: bin remote: bin
local: bin: 没有那个文件或目录
ftp> put oo.pcapng
local: oo.pcapng remote: oo.pcapng
local: oo.pcapng: 没有那个文件或目录
ftp> put lib64
local: lib64 remote: lib64
local: lib64: 没有那个文件或目录
ftp> put /home/caozx26/a.txt
local: /home/caozx26/a.txt remote: /home/caozx26/a.txt
227 Entering Passive Mode (192,168,235,100,195,138).
553 Could not create file.
ftp> put /home/caozx26/readme5.txt
local: /home/caozx26/readme5.txt remote: /home/caozx26/readme5.txt
227 Entering Passive Mode (192,168,235,100,79,101).
553 Could not create file.
ftp> ls
227 Entering Passive Mode (192,168,235,100,46,151).
150 Here comes the directory listing.
-rw-r--r--    1 1002     1002       519264 Apr 02 01:30 Steam.dll
-rw-r--r--    1 1002     1002      6291456 Jun 08 12:19 cc.conf
-rw-r--r--    1 1002     1002           95 Apr 19 07:12 known_hosts.old
226 Directory send OK.
ftp>

成功了一次 用的根目录下的文件 其他家目录下的文件均上传失败

[root@code /]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put 1.java
local: 1.java remote: 1.java
227 Entering Passive Mode (192,168,235,100,250,216).
150 Ok to send data.
226 Transfer complete.
ftp> ls
227 Entering Passive Mode (192,168,235,100,230,255).
150 Here comes the directory listing.
-rw-r--r--    1 1002     1002            0 Jun 08 13:37 1.java
-rw-r--r--    1 1002     1002       519264 Apr 02 01:30 Steam.dll
-rw-r--r--    1 1002     1002      6291456 Jun 08 12:19 cc.conf
-rw-r--r--    1 1002     1002           95 Apr 19 07:12 known_hosts.old
226 Directory send OK.
ftp>

FTP用户对客户端文件有哪些权限,哪些文件不能上传
在这里插入图片描述


[root@code vsftpd]# man 5 vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@code vsftpd]# cd
[root@code ~]# ll -d /root
dr-xr-x---. 17 root root 4096 68 21:14 /root
[root@code ~]# ll -d /home
drwxr-xr-x. 25 root root 4096 67 18:20 /home
[root@code ~]#
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put /root/readme7
local: /root/readme7 remote: /root/readme7
227 Entering Passive Mode (192,168,235,100,190,121).
553 Could not create file.
ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,98,163).
553 Could not create file.
ftp>

不行

代码

192.168.235.20

root@192.168.235.20's password:
▒▒▒ʱ▒▒ܾ▒
root@192.168.235.20's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to root@192.168.235.20                               ││   • SSH compression : ✘                                            ││   • SSH-browser     : ✔                                            ││   • X11-forwarding  :(remote display is forwarded through SSH) ││   • DISPLAY         :(automatically set on remote server)      ││                                                                    ││ ➤ For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last failed login: Sun Jun  8 17:57:18 CST 2025 from 192.168.235.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Sat Jun  7 18:19:54 2025 from 192.168.235.1
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
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,235,100,243,243).
150 Here comes the directory listing.
226 Directory send OK.
ftp> ls
227 Entering Passive Mode (192,168,235,100,202,176).
150 Here comes the directory listing.
226 Directory send OK.
ftp> cd /
421 Timeout.
ftp> ls
Not connected.
ftp> ls
Not connected.
ftp> bye
您在 /var/spool/mail/root 中有新邮件
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
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,235,100,154,146).
150 Here comes the directory listing.
226 Directory send OK.
ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,51,220).
553 Could not create file.
ftp> cd /home/kefu
421 Timeout.
ftp> bye
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ftp 192.168.235.20
Connected to 192.168.235.20 (192.168.235.20).
220 (vsFTPd 3.0.2)
Name (192.168.235.20:root): bye
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,159,119).
553 Could not create file.
ftp> ll
?Invalid command
ftp> ll -d /home/kefu
?Invalid command
ftp> byebye
?Invalid command
ftp> bye
421 Timeout.
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,255,127).
553 Could not create file.
ftp> bye
421 Timeout.
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> get .bashrc
local: .bashrc remote: .bashrc
227 Entering Passive Mode (192,168,235,100,245,10).
150 Opening BINARY mode data connection for .bashrc (231 bytes).
226 Transfer complete.
231 bytes received in 0.00147 secs (157.04 Kbytes/sec)
ftp> bye
221 Goodbye.
您在 /var/spool/mail/root 中有邮件
[root@code ~]# cd /usr/local
[root@code local]# fine -name .bashrc
bash: fine: 未找到命令...
[root@code local]# find -name .bashrc
[root@code local]# cd
您在 /var/spool/mail/root 中有邮件
[root@code ~]# find / -name .bashrc
find: ‘/run/user/1000/gvfs’: 权限不够
/etc/skel/.bashrc
/root/.bashrc
/home/caozx26/.bashrc
/home/mysql/.bashrc
/home/xiaoxiaocao/.bashrc
/home/cao1/.bashrc
/home/cao2/.bashrc
/home/xiaocao/.bashrc
/home/xiao6/.bashrc
/home/tom/.bashrc
/home/jack/.bashrc
/home/cw01/.bashrc
/home/sc01/.bashrc
/home/rs01/.bashrc
/home/boss01/.bashrc
/home/cw02/.bashrc
/home/sc02/.bashrc
/home/rs02/.bashrc
/home/netasha/.bashrc
/home/sarsh/.bashrc
/home/mahei/redhat/harry/.bashrc
/home/OOO/.bashrc
/home/jerry/.bashrc
/home/kefu/.bashrc
/home/kefu2/.bashrc
/rhome/XOAP/.bashrc
/rhome/xiaocao/.bashrc
[root@code ~]# ls
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# ls .
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# cd /root
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ls
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# ls .
2-1.java  alll1            app       axel-2.4.tar.gz  cc.conf  initial-setup-ks.cfg       ok   readme7
2.java    anaconda-ks.cfg  axel-2.4  bb.conf          code     inotify-tools-3.13.tar.gz  okl  readme.txt
[root@code ~]# ls -a
.         alll1            axel-2.4.tar.gz  .bashrc  code     .gvfs                      ok       readme.txt  .wireshark    .xauthLR1vKd
..        anaconda-ks.cfg  .bash_history    bb.conf  .config  initial-setup-ks.cfg       okl      .ssh        .xauth3MzLXm  .Xauthority
2-1.java  app              .bash_logout     .cache   .cshrc   inotify-tools-3.13.tar.gz  .pki     .tcshrc     .xauthfEP05Z  .xauthWcHhod
2.java    axel-2.4         .bash_profile    cc.conf  .dbus    .local                     readme7  .viminfo    .xauthgafSHJ
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ll .bashrc
-rw-r--r--. 1 root root 231 68 20:04 .bashrc
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kehu
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> get steam.dll
local: steam.dll remote: steam.dll
227 Entering Passive Mode (192,168,235,100,102,67).
550 Failed to open file.
ftp> get Steam.dll
local: Steam.dll remote: Steam.dll
227 Entering Passive Mode (192,168,235,100,159,211).
150 Opening BINARY mode data connection for Steam.dll (519264 bytes).
226 Transfer complete.
519264 bytes received in 0.00212 secs (244474.56 Kbytes/sec)
ftp> put /root/bb.conf
local: /root/bb.conf remote: /root/bb.conf
227 Entering Passive Mode (192,168,235,100,30,101).
553 Could not create file.
ftp> put cc.conf
local: cc.conf remote: cc.conf
227 Entering Passive Mode (192,168,235,100,223,243).
150 Ok to send data.
226 Transfer complete.
6291456 bytes sent in 0.0763 secs (82422.26 Kbytes/sec)
ftp> put bin
local: bin remote: bin
local: bin: 没有那个文件或目录
ftp> put oo.pcapng
local: oo.pcapng remote: oo.pcapng
local: oo.pcapng: 没有那个文件或目录
ftp> put lib64
local: lib64 remote: lib64
local: lib64: 没有那个文件或目录
ftp> put /home/caozx26/a.txt
local: /home/caozx26/a.txt remote: /home/caozx26/a.txt
227 Entering Passive Mode (192,168,235,100,195,138).
553 Could not create file.
ftp> put /home/caozx26/readme5.txt
local: /home/caozx26/readme5.txt remote: /home/caozx26/readme5.txt
227 Entering Passive Mode (192,168,235,100,79,101).
553 Could not create file.
ftp> ls
227 Entering Passive Mode (192,168,235,100,46,151).
150 Here comes the directory listing.
-rw-r--r--    1 1002     1002       519264 Apr 02 01:30 Steam.dll
-rw-r--r--    1 1002     1002      6291456 Jun 08 12:19 cc.conf
-rw-r--r--    1 1002     1002           95 Apr 19 07:12 known_hosts.old
226 Directory send OK.
ftp>
Network error: Software caused connection abort──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.20's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to root@192.168.235.20                               ││   • SSH compression : ✘                                            ││   • SSH-browser     : ✔                                            ││   • X11-forwarding  :(remote display is forwarded through SSH) ││   • DISPLAY         :(automatically set on remote server)      ││                                                                    ││ ➤ For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun  8 17:57:31 2025 from 192.168.235.1
[root@code ~]# cd /
[root@code /]# ls
app   bin   cc.conf  data  dev  home  lib    media  oo .pcapng  proc   root  sbin  srv  tmp  var
app1  boot  code     date  etc  java  lib64  mnt    opt         rhome  run   shop  sys  usr
[root@code /]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kehu
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.
您在 /var/spool/mail/root 中有新邮件
[root@code /]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put oo .pcapng
local: oo remote: .pcapng
local: oo: 没有那个文件或目录
ftp> ls
227 Entering Passive Mode (192,168,235,100,228,69).
150 Here comes the directory listing.
-rw-r--r--    1 1002     1002       519264 Apr 02 01:30 Steam.dll
-rw-r--r--    1 1002     1002      6291456 Jun 08 12:19 cc.conf
-rw-r--r--    1 1002     1002           95 Apr 19 07:12 known_hosts.old
226 Directory send OK.
ftp> put oo .pcapng
local: oo remote: .pcapng
local: oo: 没有那个文件或目录
ftp>   bye
421 Timeout.
您在 /var/spool/mail/root 中有邮件
[root@code /]# ls
app   bin   cc.conf  data  dev  home  lib    media  oo .pcapng  proc   root  sbin  srv  tmp  var
app1  boot  code     date  etc  java  lib64  mnt    opt         rhome  run   shop  sys  usr
[root@code /]# touch 1.java
[root@code /]# ls
1.java  app1  boot     code  date  etc   java  lib64  mnt         opt   rhome  run   shop  sys  usr
app     bin   cc.conf  data  dev   home  lib   media  oo .pcapng  proc  root   sbin  srv   tmp  var
[root@code /]# ll 1.java
-rw-r--r--. 1 root root 0 68 21:26 1.java
您在 /var/spool/mail/root 中有邮件
[root@code /]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>   cd /home/kefu
421 Timeout.
ftp> bye
您在 /var/spool/mail/root 中有邮件
[root@code /]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put 1.java
local: 1.java remote: 1.java
227 Entering Passive Mode (192,168,235,100,250,216).
150 Ok to send data.
226 Transfer complete.
ftp> ls
227 Entering Passive Mode (192,168,235,100,230,255).
150 Here comes the directory listing.
-rw-r--r--    1 1002     1002            0 Jun 08 13:37 1.java
-rw-r--r--    1 1002     1002       519264 Apr 02 01:30 Steam.dll
-rw-r--r--    1 1002     1002      6291456 Jun 08 12:19 cc.conf
-rw-r--r--    1 1002     1002           95 Apr 19 07:12 known_hosts.old
226 Directory send OK.
ftp> bye
421 Timeout.
您在 /var/spool/mail/root 中有邮件
[root@code /]# man 5 /etc/vsftpd/ftpd.conf
man: /etc/vsftpd/ftpd.conf: 没有那个文件或目录
man: 5-/etc/vsftpd/ftpd.conf: 没有那个文件或目录
在第 5 节中没有关于 /etc/vsftpd/ftpd.conf 的手册页条目。
[root@code /]# cd /etc/vsftpd
[root@code vsftpd]# man 5 vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@code vsftpd]# cd
[root@code ~]# ll -d /root
dr-xr-x---. 17 root root 4096 68 21:14 /root
[root@code ~]# ll -d /home
drwxr-xr-x. 25 root root 4096 67 18:20 /home
[root@code ~]# chmod 770 /root
您在 /var/spool/mail/root 中有邮件
[root@code ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/kefu
250 Directory successfully changed.
ftp> put /root/readme7
local: /root/readme7 remote: /root/readme7
227 Entering Passive Mode (192,168,235,100,190,121).
553 Could not create file.
ftp> put /root/2.java
local: /root/2.java remote: /root/2.java
227 Entering Passive Mode (192,168,235,100,98,163).
553 Could not create file.
ftp>

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词