在我用debian5从新的vserver中删除vsftpd之后,仍然有一些进程叫做sftp-server运行和pipe理ftp-connection。 我怎么把这个关掉? 它来自哪里?
现在注释掉/etc/ssh/sshd_config以下行并仍在运行:
#Subsystem sftp /usr/lib/openssh/sftp-server
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
sftp-server (SSH文件传输协议)不是ftp的一部分。 这是OpenSSH的一部分。
你可以在你的ssh-config中closures它,通常在/etc/ssh/sshd_config 。
更改加载的二进制文件以处理sftp会话:
Subsystem sftp /bin/false
改变之后不要忘记重启你的sshd:
/etc/init.d/sshd restart