我在找方法(iptables,规则,等等)以防止版本显示在VSFTPD的nmap报表上。
当前,在执行时: nmap -Pn -p 21 -sV localhost
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000086s latency).
PORT STATE SERVICE VERSION
21/tcp open ftp vsftpd 3.0.3
Service Info: OS: Unix
我希望版本被隐藏或显示一些无效的值(例如不可用)。
Nmap scan report for localhost
我希望有人能帮忙。我不是专业人士,也不从事这个行业的工作。我最后的两份工作是海军军官/卡车司机。我喜欢和科技打交道。
我现在对Linux环境很有信心,并尝试编写我的第一个长bash脚本。实际上,在这个社区的帖子们的帮助下,我让它发挥了作用。但是,在完全使用脚本设置VSFTP时,我在某个地方犯了一个权限错误,或者在要包含的目录中出现了错误。
我希望有人能看到我的错误,因为我想得到这个完美,并继续学习。我会附上完整的脚本如下。
#!/bin/bash
USERNAME="someusername"
# Changing to Downloads folder in order
[root@VM-20-14-centos lighthouse]# sudo systemctl restart vsftpd
Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and "journalctl -xe" for details.
[root@VM-20-14-centos lighthouse]# sudo netstat -antup | grep ftp
我想问一下linux中的ftp连接,如何使用终端检查linux中的ftp匿名连接?我使用while循环读取vsftpd.conf文件,就像这样
while read line
do
if [ Anonymous_enable=YES ];
then echo " Accept connection"
elif [ Anonymous_enable=NO ];
then echo "Not Accept"
fi
done<vsftpd.conf
我在我的fedora 16机器上安装了ftp服务器vsftpd。直到今天早上一切都很顺利。突然,今天早上,当我输入命令重新启动vsftpd时,它显示了以下错误
[root@localhost bibeknam]# service vsftpd restart
Redirecting to /bin/systemctl restart vsftpd.service
Job failed. See system logs and 'systemctl status' for details.
状态报告如下
[root@localhost bibeknam]# service v
我在远程服务器上编辑了/etc/vsftpd.conf。现在要重新启动vsftpd,我运行了
ravbholua@ravi:~$ sudo /etc/init.d/vsftpd restart
[sudo] password for ravbholua:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd restart
Since the script you are attempting to invoke has been conv