欧美一区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號

主站蜘蛛池模板: 密山市| 钟山县| 辉县市| 惠安县| 介休市| 金阳县| 宁河县| 玉树县| 承德县| 紫阳县| 吴堡县| 浙江省| 双鸭山市| 高清| 萨迦县| 沈丘县| 依安县| 儋州市| 秦皇岛市| 修水县| 北辰区| 商城县| 安国市| 广元市| 鄂尔多斯市| 嘉定区| 郸城县| 嘉鱼县| 瓮安县| 宁河县| 普兰县| 稷山县| 洛南县| 余庆县| 冕宁县| 嵊州市| 乳山市| 繁峙县| 汪清县| 读书| 博湖县|