LINUX 623 FTP回顾

FTP

权限 /etc/vsftpd/vsftpd.conf

anonymous_enable=NO local_enable=NO

服务器 .20

[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=YES
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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

客户端.100

[root@nfs ~]# 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): ftp
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
[root@nfs ~]# 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): anonymous
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>

服务端

[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=NO
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]#

local_enable=NO
客户端

[root@nfs ~]# ftp 192.168.235.20
Connected to 192.168.235.20 (192.168.235.20).
500 OOPS: vsftpd: both local and anonymous access disabled!
ftp>

500 OOPS: vsftpd: both local and anonymous access disabled!在这里插入图片描述
.20服务端

[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]#

.100客户端

[root@nfs ~]# 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): jerry
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

anonymous_enable=YES local_enable=yes

服务端


[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=YES
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
[root@web vsftpd]#

客户端

[root@nfs ~]# 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): jerry
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): 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,235,20,117,99).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,20,36,136).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp>

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

anonymous=YES local_enable=no

服务端


[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=yes
local_enable=no
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]#

客户端


[root@nfs ~]# 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): 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,235,20,56,11).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,20,175,97).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): jerry
530 This FTP server is anonymous only.
Login failed.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): anonymous
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,20,167,2).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> sl
?Invalid command
ftp> ls
227 Entering Passive Mode (192,168,235,20,255,140).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp>

local_root=// chroot_local_user=yes

在这里插入图片描述

500 oops allow_writeable_chroot=yes

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

给一部分用户开启非禁锢权限

在这里插入图片描述

echo kefu >> /etc/vsftpd/chroot_list

192.168.235.20

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: Thu Jun 19 20:04:55 2025 from 192.168.235.1
[root@web ~]# cd /etc/vsftpd
[root@web vsftpd]# ls
ftpusers  user_list  vsftpd.conf  vsftpd_conf_migrate.sh
[root@web vsftpd]# cat vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=YES
local_root=/data/kefu2
chroot_local_user=YES
# Uncomment this to enable any form of FTP write command.
allow_writeable_chroot=YES
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/xferlog
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode. The vsftpd.conf(5) man page explains
# the behaviour when these options are disabled.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
您在 /var/spool/mail/root 中有新邮件
[root@web vsftpd]# gerp -v ^# vsftpd.conf
bash: gerp: 未找到命令...
相似命令是: 'grep'
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=YES
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# man 5 vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# tail -10 /etc/passwd
cw02:x:1014:1224::/home/cw02:/bin/bash
sc02:x:1015:1226::/home/sc02:/bin/bash
rs02:x:1016:1225::/home/rs02:/bin/bash
harry:x:1017:1017::/home/mahei/redhat/harry:/bin/bash
netasha:x:1018:1018::/home/netasha:/bin/bash
sarsh:x:1019:1228::/home/sarsh:/bin/bash
OOO:x:1020:1020::/home/OOO:/bin/bash
jerry:x:1021:1229::/home/jerry:/bin/bash
kefu:x:1022:1022::/home/kefu:/bin/bash
kefu2:x:1023:1023::/home/kefu2:/bin/bash
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# gerp -v ^# vsftpd.conf
bash: gerp: 未找到命令...
相似命令是: 'grep'
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=NO
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# cat vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
# Uncomment this to enable any form of FTP write command.
allow_writeable_chroot=YES
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/xferlog
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode. The vsftpd.conf(5) man page explains
# the behaviour when these options are disabled.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=YES
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=NO
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=yes
local_enable=no
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]# systemctl restart vsftpd
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# vim vsftpd.conf
您在 /var/spool/mail/root 中有邮件
[root@web vsftpd]# grep -v ^# vsftpd.conf
anonymous_enable=no
local_enable=yes
local_root=/data/kefu2
chroot_local_user=YES
allow_writeable_chroot=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@web vsftpd]#
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: Mon Jun 23 19:05:49 2025 from 192.168.235.1
[root@web ~]# hostname
web.cn
[root@web ~]# cd /var/www/html
您在 /var/spool/mail/root 中有新邮件
[root@web html]# ls
index.html  media
[root@web html]# cat index.html
<<video width="800" height="450" controls>
<source src="media/share.mp4">
</video>
[root@web html]# systemctl status httpd
● httpd.service - The Apache HTTP ServerLoaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)Active: active (running) since 三 2025-06-18 20:00:51 CST; 5 days agoDocs: man:httpd(8)man:apachectl(8)Main PID: 13043 (httpd)Status: "Total requests: 18; Current requests/sec: 0; Current traffic:   0 B/sec"Tasks: 8CGroup: /system.slice/httpd.service├─13043 /usr/sbin/httpd -DFOREGROUND├─13051 /usr/sbin/httpd -DFOREGROUND├─13052 /usr/sbin/httpd -DFOREGROUND├─13053 /usr/sbin/httpd -DFOREGROUND├─13054 /usr/sbin/httpd -DFOREGROUND├─13055 /usr/sbin/httpd -DFOREGROUND├─22622 /usr/sbin/httpd -DFOREGROUND└─24220 /usr/sbin/httpd -DFOREGROUND618 20:00:50 web.cn systemd[1]: Starting The Apache HTTP Server...
618 20:00:51 web.cn systemd[1]: Started The Apache HTTP Server.
您在 /var/spool/mail/root 中有邮件
[root@web html]# df -h
文件系统                 容量  已用  可用 已用% 挂载点
devtmpfs                 470M     0  470M    0% /dev
tmpfs                    487M     0  487M    0% /dev/shm
tmpfs                    487M   21M  466M    5% /run
tmpfs                    487M     0  487M    0% /sys/fs/cgroup
/dev/mapper/centos-root   17G  4.9G   13G   29% /
/dev/sda1               1014M  172M  843M   17% /boot
tmpfs                     98M   12K   98M    1% /run/user/42
/dev/sr0                 4.4G  4.4G     0  100% /mnt
192.168.235.100:/share    17G  5.7G   12G   33% /var/www/html/media
tmpfs                     98M     0   98M    0% /run/user/0
您在 /var/spool/mail/root 中有邮件
[root@web html]# mount -t nfs nfsip:/share/ /var/www/html/media
mount.nfs: Failed to resolve server nfsip: Name or service not known
mount.nfs: Operation already in progress
[root@web html]#

192.168.235.100

root@192.168.235.100's password:
Remote side unexpectedly closed network connection──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to root@192.168.235.100                              ││   • 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: Thu Jun 19 20:05:14 2025 from 192.168.235.1
[root@nfs ~]# 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): jerry
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,20,109,66).
150 Here comes the directory listing.
-rw-rwxr--    1 1023     1023            0 Jun 07 12:46 6
-rw-r--r--    1 1023     1023         1862 Jan 28 03:32 AutoMathSetting.dat
-rw-r--r--    1 1023     1023        16846 Sep 05  2024 ControlMappings.xml
-rw-r--r--    1 1023     1023           81 Mar 25  2024 GameData.dat
-rw-r--r--    1 1023     1023        52065 Jun 17  2024 复仇女神2.png
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,20,122,146).
150 Here comes the directory listing.
-rw-rwxr--    1 1023     1023            0 Jun 07 12:46 6
-rw-r--r--    1 1023     1023         1862 Jan 28 03:32 AutoMathSetting.dat
-rw-r--r--    1 1023     1023        16846 Sep 05  2024 ControlMappings.xml
-rw-r--r--    1 1023     1023           81 Mar 25  2024 GameData.dat
-rw-r--r--    1 1023     1023        52065 Jun 17  2024 复仇女神2.png
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp>
ftp> ls
227 Entering Passive Mode (192,168,235,20,71,225).
150 Here comes the directory listing.
-rw-rwxr--    1 1023     1023            0 Jun 07 12:46 6
-rw-r--r--    1 1023     1023         1862 Jan 28 03:32 AutoMathSetting.dat
-rw-r--r--    1 1023     1023        16846 Sep 05  2024 ControlMappings.xml
-rw-r--r--    1 1023     1023           81 Mar 25  2024 GameData.dat
-rw-r--r--    1 1023     1023        52065 Jun 17  2024 复仇女神2.png
226 Directory send OK.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): ftp
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): anonymous
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
[root@nfs ~]# ftp 192.168.235.20
Connected to 192.168.235.20 (192.168.235.20).
500 OOPS: vsftpd: both local and anonymous access disabled!
ftp> bye
[root@nfs ~]# 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): jerry
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> BYE
?Invalid command
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): jerry
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): 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,235,20,117,99).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,20,36,136).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> bye
421 Timeout.
[root@nfs ~]# 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): 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,235,20,56,11).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,20,175,97).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): jerry
530 This FTP server is anonymous only.
Login failed.
ftp> bye
221 Goodbye.
[root@nfs ~]# 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): anonymous
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,20,167,2).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> sl
?Invalid command
ftp> ls
227 Entering Passive Mode (192,168,235,20,255,140).
150 Here comes the directory listing.
drwxr-xr-x    2 0        0               6 Oct 13  2020 pub
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.100's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to root@192.168.235.100                              ││   • 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: Mon Jun 23 19:33:09 2025 from 192.168.235.1
[root@nfs ~]# hostname
nfs.cn
[root@nfs ~]# cat /etc/exports
/share   192.168.235.0/24(rw,sync)
[root@nfs ~]# systemctl status nfs-utils
● nfs-utils.service - NFS server and client servicesLoaded: loaded (/usr/lib/systemd/system/nfs-utils.service; static; vendor preset: disabled)Active: inactive (dead)
您在 /var/spool/mail/root 中有新邮件
[root@nfs ~]# systemctl status rpcbind
● rpcbind.service - RPC bind serviceLoaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled; vendor preset: enabled)Active: active (running) since 三 2025-06-18 19:18:08 CST; 5 days agoProcess: 714 ExecStart=/sbin/rpcbind -w $RPCBIND_ARGS (code=exited, status=0/SUCCESS)Main PID: 723 (rpcbind)CGroup: /system.slice/rpcbind.service└─723 /sbin/rpcbind -w6月 18 19:18:07 nfs.cn systemd[1]: Starting RPC bind service...
6月 18 19:18:08 nfs.cn systemd[1]: Started RPC bind service.
[root@nfs ~]# systemctl status nfs
● nfs-server.service - NFS server and servicesLoaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)Active: active (exited) since 三 2025-06-18 19:35:12 CST; 5 days agoProcess: 5411 ExecStartPost=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl reload gssproxy ; fi (code=exited, status=0/SUCCESS)Process: 5394 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)Process: 5393 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)Main PID: 5394 (code=exited, status=0/SUCCESS)CGroup: /system.slice/nfs-server.service6月 18 19:35:12 nfs.cn systemd[1]: Starting NFS server and services...
6月 18 19:35:12 nfs.cn exportfs[5393]: exportfs: No options for /share 192.168.235.0/24: suggest 192.168.235.0/24(sync) to avoid warning
6月 18 19:35:12 nfs.cn systemd[1]: Started NFS server and services.
Hint: Some lines were ellipsized, use -l to show in full.
[root@nfs ~]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt        opt   rsync.sh  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  nohup.out  proc  run       srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  ok         root  sbin      sys    var
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,delete,modify,move,attrib /share |while read events
do
rsync -a --delete /share/ 192.168.235.200:/backup/
echo "$(date '+%F %T')出现事件$events">>/var/log/rsync.log 2>&1
done
[root@nfs /]# ll rsync.sh
-rwxr-xr-x. 1 root root 221 619 21:45 rsync.sh
[root@nfs /]# jobs
[root@nfs /]#

192.168.235.200

caozx26@192.168.235.200's password:
▒▒▒ʱ▒▒ܾ▒
caozx26@192.168.235.200's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to caozx26@192.168.235.200                           ││   • 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: Mon Jun 23 19:33:32 CST 2025 from 192.168.235.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Thu Jun 19 20:05:07 2025 from 192.168.235.1
[caozx26@backup ~]$
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
caozx26@192.168.235.200's password:┌────────────────────────────────────────────────────────────────────┐│                        • MobaXterm 20.0 •                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ➤ SSH session to caozx26@192.168.235.200                           ││   • 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: Mon Jun 23 19:33:37 2025 from 192.168.235.1
[caozx26@backup ~]$ hostname
backup.cn
[caozx26@backup ~]$

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.pswp.cn/pingmian/85882.shtml
繁体地址,请注明出处:http://hk.pswp.cn/pingmian/85882.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

leetcode:77. 组合

学习要点 学习回溯思想&#xff0c;学习回溯技巧&#xff1b;大家应当先看一下下面这几道题 leetcode&#xff1a;46. 全排列-CSDN博客leetcode&#xff1a;78. 子集-CSDN博客leetcode&#xff1a;90. 子集 II-CSDN博客 题目链接 77. 组合 - 力扣&#xff08;LeetCode&#x…

自定义主题,echarts系列嵌套

自定义主题&#xff0c;echarts系列嵌套&#xff0c;完善map地图系列与lines系列抛物线 自定义主题开发设计&#xff08;如传感器数据可视化&#xff09; 1.使用typetreemap自定义 TreeMap 主题&#xff08;矩形树图系列&#xff09; 2.在矩形树图中画typelines动态连线和typee…

速度与精度的结合:Faster R-CNN模型的性能剖析

目标检测作为计算机视觉领域的核心问题之一&#xff0c;其重要性随着深度学习技术的发展而日益凸显。本文深入探讨了基于深度学习的Faster R-CNN模型&#xff0c;这是一种革命性的目标检测框架&#xff0c;它通过引入区域提议网络&#xff08;Region Proposal Network, RPN&…

计算机网络--期末速通版

以下总结提纲来自于hcgg&#xff0c;伟大无需多言。socket编程没有写进去&#xff0c;Rdt的话我后来感觉可能只考概念&#xff0c;其余我感觉会考的部分都在里面了&#xff0c;如果有错误或者解释不清楚造成的疑问&#xff0c;希望大家及时指正&#xff0c;感谢。 应用层 DNS…

AI浪潮拐点:MCP与A2A协议如何重塑AI智能体协作生态

一、AI技术演进的必然拐点:从单机智能到群体协作 当AI技术从单模型推理迈向复杂系统协作,MCP(模型协作协议)与A2A(智能体间协作协议)的诞生标志着产业变革的关键转折点。这一演进并非偶然,而是技术发展与社会需求双重驱动的必然结果。 从技术脉络看,AI正经历从"…

Python pyecharts基础(一)

pyecharts 安装 pip安装 pip(3) install pyecharts源码安装 $ git clone https://github.com/pyecharts/pyecharts.git $ cd pyecharts $ pip install -r requirements.txt $ python setup.py install # 或者执行 python install.py查看版本 import pyecharts print(pyecha…

【论文阅读】人工智能在直升机航空电子系统中的应用

人工智能在直升机航空电子系统中的应用 论文摘要文章结构参考文献 论文摘要 论文摘要:在现代战争形势日趋信息化、智能化的背景下&#xff0c;将人工智能应用于武器装备已经是大势所趋。针对直升机飞行任务的特征&#xff0c;对其发展状况进行了描述&#xff0c;并对其作业能力…

矩阵阶数(线性代数) vs. 张量维度(深度学习):线性代数与深度学习的基石辨析,再也不会被矩阵阶数给混淆了

文章目录 前言第一部分&#xff1a;重温矩阵阶数 - 方阵的专属标签第二部分&#xff1a;深入张量维度 - 深度学习的多维容器第三部分&#xff1a;核心区别总结第四部分&#xff1a;在深度学习中为何混淆&#xff1f;如何区分&#xff1f;结论 前言 在线性代数的殿堂里&#xf…

渗透测试指南(CSMSF):Windows 与 Linux 系统中的日志与文件痕迹清理

目录 &#x1f575;️‍♂️ 一、清理日志的重要性 核心目标 案例&#xff1a;域控渗透后日志暴露 &#x1f5a5;️ 二、Windows系统日志清理 1. 事件日志&#xff08;Event Logs&#xff09; 2. Web日志&#xff08;IIS Logs&#xff09; 3. PowerShell日志 4. 其他日…

MYSQL数据库和MSSQL数据库有什么区别?如何进行备份和还原?

MySQL 和 MSSQL 是两种广泛使用的关系型数据库&#xff0c;但它们在架构、功能、性能、平台支持以及使用场景等方面存在许多差异。以下是详细的区别&#xff0c;以及两者的备份和还原方法。 1. MySQL 与 MSSQL 的区别 1.1 基本概念 数据库MySQLMSSQL开发者Oracle&#xff08;…

vscode搭建spring boot项目

一.创建项目 第一步&#xff1a;打开vscode按下shiftctrlp,选择下面的 第二步&#xff1a;选择版本 第三步&#xff1a;选择语言 第四步&#xff1a;填写项目的Groupid 第五步&#xff1a;填写Artifact id 第六步&#xff1a;选择打包方式 第七步&#xff1a;选择java版本 第…

Matter协议开发者指南:使用Matter SDK构建智能家居应用

更新请关注&#xff1a;Matter协议开发者指南&#xff1a;使用Matter SDK构建智能家居应用 智能家居的演变从根本上改变了我们日常生活中与技术互动的方式。从语音助手到自动化照明和安防系统&#xff0c;机遇似乎无穷无尽。然而&#xff0c;开在这个迅速扩张的领域中&#xff…

中科院1区TOP|IF8.3:广西中医药大学团队采用代谢组学-网络药理学整合策略,阐明鸡骨草的多靶点作用机制

中科院1区TOP|IF8.3&#xff1a;广西中医药大学团队采用代谢组学-网络药理学整合策略&#xff0c;阐明鸡骨草的多靶点作用机制 在当今生命科学研究领域&#xff0c;代谢性疾病的防治与传统中药的现代化研究已成为两大备受瞩目的热点方向。随着全球范围内脂质代谢紊乱相关疾病发…

c++中 Lambda表达式

Lambda优化技巧 尽量使用值捕获简单类型 避免捕获大型对象(使用引用或智能指针) 将不修改的捕获标记为const 使用初始化捕获移动语义资源 前言 1. Lambda表达式基本语法 [捕获列表](参数列表) mutable(可选) 异常属性(可选) -> 返回类型(可选) {// 函数体 } 捕获列表…

睿是信息携手Arctera,深化服务中国市场,共筑数据管理新未来

2025年6月23日&#xff0c;为了更加深入服务中国大陆地区的广大用户&#xff0c;上海睿是信息科技有限公司&#xff08;以下简称“睿是信息”&#xff09;与全球数据管理领域的领导者Arctera&#xff0c;双方正式达成战略合作&#xff0c;自2025年7月7日起&#xff0c;睿是信息…

【WebGIS系列】WebGIS 开发相关的资源

目录 数据 GIS 软件 地图渲染库 EPSG 相关工具 资源 以下为个人收集的与 WebGIS 开发相关的资源&#xff08;排名不分前后&#xff09;&#xff0c;欢迎补充。 数据 天地图(opens in a new tab)国家统计局行政区划(opens in a new tab)民政部全国行政区划信息查询平台(…

【单调栈】-----【小A的柱状图】

小A的柱状图 题目链接 题目描述 柱状图是有一些宽度相等的矩形下端对齐以后横向排列的图形&#xff0c;但是小A的柱状图却不是一个规范的柱状图&#xff0c;它的每个矩形下端的宽度可以是不相同的一些整数&#xff0c;分别为 a [ i ] a[i] a[i]&#xff0c;每个矩形的高度是…

MySQL 索引优化与慢查询优化:原理与实践

MySQL是一个广泛使用的关系型数据库管理系统&#xff0c;优化MySQL的性能对于保证应用的高效运行至关重要。本文将详细介绍MySQL索引优化与慢查询优化的原理和实践方法。 一、MySQL索引优化 1.1 索引的基本概念 索引是一种用于提高数据库查询速度的数据结构。常见的索引类型…

【AS32系列MCU调试教程】应用开发:基于AS32芯片的流水灯功能实现

摘要&#xff1a; 本文以国科安芯的AS32系列MCU芯片为例&#xff0c;聚焦于基于 AS32 芯片的流水灯功能开发&#xff0c;深入阐述了开发环境搭建、工程配置以及调试等关键环节。通过详尽的实验过程与结果分析&#xff0c;旨在为相关领域技术人员提供一套系统、高效且成本可控的…

爬虫001----介绍以及可能需要使用的技术栈

首先1️⃣。。。全篇使用的技术栈当然是python了&#xff0c;毕竟作为一名点点点工程师&#xff0c;实际工作中做测试开发用的也是python&#xff0c;毕竟测试框架么&#xff0c;不需要什么"速度"。也会一点点cpp和js&#xff0c;但不多。什么&#xff1f;你说go和ja…