在我使用 debian5 从我的新虚拟服务器中删除 vsftpd 之后,仍然有一些名为 sftp-server 的进程在运行和管理 ftp-connection。我怎样才能关掉它?它来自哪里?
/etc/ssh/sshd_config现在注释掉以下行并且仍在运行:
#Subsystem sftp /usr/lib/openssh/sftp-server
Run Code Online (Sandbox Code Playgroud)
netstat -tulpen 输出:(通过xx.xx.xxx.xxx审查我的IP)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 102 2331605921 1343/named
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 105 2331610459 1538/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 2331606433 1379/apache2
tcp 0 0 xx.xx.xxx.xxx:53 0.0.0.0:* LISTEN 102 2331605880 1343/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 102 2331605866 1343/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 2331612861 1595/sshd
tcp6 0 0 ::1:953 :::* LISTEN 102 2331605922 1343/named
tcp6 0 0 :::53 :::* LISTEN 102 2331605862 1343/named
tcp6 0 0 :::22 :::* LISTEN 0 2331612863 1595/sshd
udp 0 0 xx.xx.xxx.xxx:53 0.0.0.0:* 102 2331605867 1343/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 102 2331605864 1343/named
udp6 0 0 :::53 :::* 102 2331605849 1343/named
Run Code Online (Sandbox Code Playgroud)
sftp-server(SSH 文件传输协议)不是ftp. 它是 的一部分OpenSSH。
您可以在 ssh-config 中关闭它,通常在/etc/ssh/sshd_config.
更改加载的二进制文件以处理 sftp 会话:
Subsystem sftp /bin/false
Run Code Online (Sandbox Code Playgroud)
更改后不要忘记重新启动 sshd:
/etc/init.d/sshd restart
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
902 次 |
| 最近记录: |