水蜜桃2美国伦理|美国伦理巜交换做爰|美国伦理〈欲女春潮〉|宝贝腿开大点我添添你下边美国|美国色情巜春药2|美国少妇2做爰

  • IDC銷售:020-66849165/66849090/66849088
  • 云服務(wù)銷售:020-66849108/9091 | 客服(備案,域名,虛機(jī),郵箱):020-66849000-2

登錄 | 會(huì)員注冊(cè) | 控制面板 | 幫助中心 | 購(gòu)物車 | 舉報(bào)中心

? ? 域名活動(dòng)
幫助中心FAQ

 

1.安裝服務(wù)

#yum -y instal vsftpd

2.修改配置

#vi /etc/vsftpd/vsftpd.conf

標(biāo)黃為必需修改,其他選項(xiàng)按需修改(ps:對(duì)應(yīng)被動(dòng)模式選項(xiàng)配置選項(xiàng)不存在,可自行添加)

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).

anonymous_enable=NO

 

# Make sure PORT transfer connections originate from port 20 (ftp-data).

connect_from_port_20=YES

pasv_enable=YES

pasv_min_port=1000

pasv_max_port=2000

 

# When "listen" directive is enabled, vsftpd runs in standalone mode and

# listens on IPv4 sockets. This directive cannot be used in conjunction

# with the listen_ipv6 directive.

listen=YES

 

# This directive enables listening on IPv6 sockets. By default, listening

# on the IPv6 "any" address (::) will accept connections from both IPv6

# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6

# sockets. If you want that (perhaps because you want to listen on specific

# addresses) then you must run two copies of vsftpd with two configuration

# files.

# Make sure, that one of the listen options is commented !!

listen_ipv6=NO

3.iptables放行

-A INPUT -p tcp --dport 20:21 -j ACCEPT

-A OUTPUT -p tcp --dport 20:21 -j ACCEPT

-A INPUT -p tcp --dport 1000:2000 -j ACCEPT

-A OUTPUT -p tcp --dport 1000:2000 -j ACCEPT

4.用戶建立

因?yàn)?/span>ftpusers、user_list中均有root,說(shuō)明默認(rèn)禁止root登錄FTP,因此可以使用非root其他用戶直接登錄FTP,訪問(wèn)路徑默認(rèn)用戶路徑/home/用戶名

5.登錄方式

windows:百度一堆方法軟件

linux:

# ftp 124.172.154.66

Connected to 124.172.154.66.

220 (vsFTPd 3.0.2)

530 Please login with USER and PASS.

530 Please login with USER and PASS.

KERBEROS_V4 rejected as an authentication type

Name (124.172.154.66:root): idchost

331 Please specify the password.

Password: 

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (124,172,154,66,4,102).

150 Here comes the directory listing.

-rw-rw-r--    1 1000     1000         2397 Aug 21 11:15 domain.txt

-rw-rw-r--    1 1000     1000         5429 Aug 21 11:45 domain_ip.txt

226 Directory send OK.

ftp> quit

221 Goodbye.

 

 

米泉市| 临漳县| 巴南区| 临海市| 舞阳县| 道孚县| 庆安县| 蕉岭县| 延庆县| 赣榆县| 营山县| 三台县| 北宁市| 成都市| 阿坝| 奉新县| 无棣县| 固阳县| 祥云县| 佳木斯市| 林周县| 扎囊县| 尖扎县| 将乐县| 扶沟县| 阿拉善左旗| 久治县| 新和县| 遂平县| 宕昌县| 固始县| 安阳县| 界首市| 深泽县| 金湖县| 英德市| 横峰县| 竹北市| 习水县| 连云港市| 墨脱县|