欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到云服務器

Directadmin Linux面板

如何將mod_sftp安裝到proftpd中

對于希望允許其用戶使用sftp而不是ftp或ftps上傳數據的服務器管理員,本指南將概述如何將sftp(安全shell ftp)安裝到proftpd中。
 
請注意,這假設您正在使用proftpd的新版unified_ftp_password_file設置(您應該使用空的proftpd.vhosts.conf文件)
 
1)用所需更改重新編譯proftpd:

cd /usr/local/directadmin/custombuild
./build update
./build set proftpd yes
mkdir -p custom/proftpd
wget -O custom/proftpd/configure.proftpd http://files.directadmin.com/services/all/sftp/configure.proftpd.sftp
chmod 755 custom/proftpd/configure.proftpd
./build proftpd


2)備份舊的配置,并抓住新的配置:

cd /etc
cp proftpd.conf proftpd.conf.backup
wget -O proftpd.conf http://files.directadmin.com/services/all/sftp/proftpd.conf
wget -O proftpd.sftp.conf http://files.directadmin.com/services/all/sftp/proftpd.sftp.conf
perl -pi -e 's/|SERVER_IP|/1.2.3.4/' proftpd.conf
perl -pi -e 's/|SERVER_IP|/1.2.3.4/' proftpd.sftp.conf

你可以用你的服務器IP替換1.2.3.4。
 
 
3)重新啟動proftpd并測試(粗體項目是鍵入的)

[root@server ~]#/etc/init.d/proftpd restart
Shutting down proftpd:                                     [  OK  ]
Starting proftpd:                                          [  OK  ]
[root@server ~]# telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 ProFTPD 1.3.4a Server ready.
QUIT
221 Goodbye.
Connection closed by foreign host.
[root@server ~]# telnet localhost 23
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
SSH-2.0-mod_sftp/0.9.8
garbledtext
       Connection closed by foreign host.



請注意,sftp客戶端的默認設置是使用端口22.但是,sshd默認使用此端口。
如果您希望sftp使用22,您首先需要更改sshd正在使用的端口(確保您的防火墻已在新端口上打開),然后更改/etc/proftpd.sftp.conf文件中的端口23值 改為使用22,然后重新啟動proftpd。


CustomBuild 2.0
如果您需要ClamAV,CB2將在安裝時自動將其添加到proftpd.conf中。 因此,您還需要運行:

cd /usr/local/directadmin/custombuild
mkdir -p custom/proftpd/conf
wget -O custom/proftpd/conf/proftpd.conf http://files.directadmin.com/services/all/sftp/proftpd.conf
./build proftpd

它應該復制自定義proftpd.conf,并將ClamAV部件添加到<Global>部分。
騰訊云代理

Copyright © 2003-2021 MFISP.COM. 國外vps服務器租用 夢飛云服務器租用 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 阜新市| 海南省| 邢台市| 墨脱县| 杭州市| 行唐县| 个旧市| 同仁县| 嘉鱼县| 香格里拉县| 山东省| 贵州省| 彰化市| 怀集县| 汤阴县| 乌审旗| 灵山县| 扬中市| 来宾市| 嘉义市| 普兰店市| 大姚县| 昆山市| 威海市| 喜德县| 安泽县| 南京市| 遂平县| 衡山县| 陆良县| 神木县| 航空| 清徐县| 故城县| 宾阳县| 五指山市| 萝北县| 丰原市| 施秉县| 剑阁县| 南召县|