阿里云
阿里云大学认证0元起
发表主题 回复主题
  • 17555阅读
  • 10回复

[求助]ftp客户端连接不上ftp服务器?

级别: 新人
发帖
17
云币
23
1、在本地己电脑的命令行,输入密码之后就报下面的错误 >.fN@8[  
/ >As9|%  
rK@UCRf  
?#cX_  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site *a2 y  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... 5V($|3PI  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. J(s%"d  
密码: :q+D`s  
!:7aXT*D$  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & 6$l6>A  
sched)'aborting... 4=T>Iy  
500 OOPS: priv_sock_get_result远程主机关闭连接。 JuD$CHg;#  
@6~OQN  
v.aSf`K  
@rh1W$  
6kc/  
z3lMD'uU3  
BWz7m9 T  
BwN>;g_  
DJF-J#  
@$ea-fK??  
-bq\2Yc$]  
wJb\Q  
O 0lQ1<=  
n<x NE %  
KLc<c1BZ  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: h2Pvj37  
j})6O!L.  
|c]Y1WwDx  
"I|[m%\  
        *** CuteFTP 9.0 - build Nov  9 2012 *** L%7?o:  
xV h-Mx+M  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... fYU-pdWPT  
STATUS:>      [2015/12/10 14:54:00] Host name ftp.chunwenxue.site resolved: ip = 218.30.64.199.STATUS:>      [2015/12/10 14:54:00] Connecting to FTP server... ftp.chunwenxue.site:21 (ip = 218.30.64.199)... #hBDOXHPf  
ERROR:>       [2015/12/10 14:54:15] The connection failed due to an error or timeout.        1) Verify that the destination IP address is correct. "ct_EPr`  
        2) Increase the connection timeout threshold under Global Settings | Connection.        3) Switch to the opposite data connection type (PASV or PORT) under Site Settings | Type tab. C7]K9  
        4) Verify that the problem is not local by trying to connect to an alternate server.        5) If a server name was used, verify it resolves to the correct address. =a_B'^`L  
        6) If using a local server table for server name resolution, check to see that it doesn't resolve to an obsolete address.        7) Try pinging the address. U[S#axak  
        8) If you are using a router, verify the router is up and running (check by pinging it and then ping an address outside of the router).        9) Do a traceroute to the destination to verify all routers along the connection path are operational. qYMTud[Vf  
        10) Verify that your subnet mask is setup properly.        11) Verify that your local software or hardware firewall is not blocking outbound connections originating from CuteFTP. Tv;|K's'  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... #eqy!QdePf  
Z'%k`F  
V m1U00lM{  
Hm?zMyO.k  
k++Os'hSEY  
/CtR|~wL  
h5bQ  
Um k9  
x)h p3&L  
i%+p\eeq*  
N'fE^jqU  
注:gzh/密码,这个是新建的用户。 +G3&{#D ?  
( _ZOUMe  
级别: 新人
发帖
17
云币
23
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 a_YE[6  
\N\Jny  
[N}:Di,S  
G"bItdb  
------------ P1b5=/}:V  
netstat -na命令,输出如下: 6mJa  
cn$E?&-  
wRL=9/5(8  
login as: root W8Z&J18AU  
root@182.92.197.238's password: )miY>7K  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 |->{NU Z{  
Kc+;"4/#q  
Welcome to aliyun Elastic Compute Service! ?Gc9^b B I  
,v$gWA!l  
d]0.6T1[K  
[root@iZ25p3ad0ffZ ~]# netstat -na MP\$_;&xB  
Active Internet connections (servers and established) C2;qSKG3{m  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e 0wV!mC  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN OPR+K ?  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN  $9dm2#0d  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN wt4uzg8  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN 3A%/H`  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN cg$@x\fJ  
………… 7pDov@K<{  
iha{(-  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? m2!y;)F0  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
23
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 oM`[&m.,  
Etk`>,]Y>y  
&%QtUPvr9  
(h NSzG\  
------------------- >_ji`/ d{  
}gY:VDW  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost Do3;-yp>`  
lftp gzh@localhost:~> Eeem y*U  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
23
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 nvt$F%+  
vsftpd服务也已经启动。 W Y:s gG  
h55>{)(E  
2、都说要看vsftpd配置文件啥的,请问要配置啥? `%=<R-/#7S  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? aMJ;bQD  
7Cy<mS  
)xt4Wk/  
---------------- #wjH4DT  
完整的配置文件如下: 7$7n71o  
8W -@N  
/2XW  
# Example config file /etc/vsftpd/vsftpd.conf DP*@dFU"  
# utH%y\NMF|  
# The default compiled in settings are fairly paranoid. This sample file uPLErO9Es[  
# loosens things up a bit, to make the ftp daemon more usable. :YNp8!?T?  
# Please see vsftpd.conf.5 for all compiled in defaults. L/i(KF{  
# g5Td("& n  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. 8r^ ~0nm  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's $r79n-  
# capabilities. 7&+Ys  
# ,2,5Odrz  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). d~Mg vh'  
anonymous_enable=NO K9|7dvzC:  
#  g_q<ze  
# Uncomment this to allow local users to log in. H;S%Y`V  
local_enable=YES -5k2j^r;  
# N wtg%;  
# Uncomment this to enable any form of FTP write command. Cv^`&\[SW+  
write_enable=YES 3n48%5  
# .=<$S#x^Hb  
# Default umask for local users is 077. You may wish to change this to 022, @cv{rr  
# if your users expect that (022 is used by most other ftpd's) /!T> b:0  
local_umask=022 zOB=aG?/  
# f$F*3  
# Uncomment this to allow the anonymous FTP user to upload files. This only B42sb_  
# has an effect if the above global write enable is activated. Also, you will 6+` tn  
# obviously need to create a directory writable by the FTP user. v\%G|8+]  
anon_upload_enable=NO d,9`<1{9  
# XvKFPr0~  
# Uncomment this if you want the anonymous FTP user to be able to create Vmi{X b]<  
# new directories. GEe`ZhG,  
anon_mkdir_write_enable=NO , Z ~;U  
# D7 ?C  
# Activate directory messages - messages given to remote users when they zp4W'8  
# go into a certain directory. k \qiF|B)Z  
dirmessage_enable=YES )/|6'L-2  
# UVEz;<5@\  
# Activate logging of uploads/downloads. Cifd21v4  
xferlog_enable=YES @i%YNI5*  
# c`G&KCw)d  
# Make sure PORT transfer connections originate from port 20 (ftp-data). 51xk>_Hm}|  
connect_from_port_20=YES ;[$n=VX`  
# ^^Jnv{)  
# If you want, you can arrange for uploaded anonymous files to be owned by } !s!;BOx  
# a different user. Note! Using "root" for uploaded files is not vkcRm`.  
# recommended!  ux-CpI  
#chown_uploads=YES ^g>1U5c  
#chown_username=whoever ZafboqsDL  
# G/?~\ }:s  
# You may override where the log file goes if you like. The default is shown Vpp&|n9^  
# below. jC, FG'P  
xferlog_file=/var/log/vsftpd.log Es'Um,ku  
# |m G7XL,  
# If you want, you can have your log file in standard ftpd xferlog format. XbXA+ey6  
# Note that the default log file location is /var/log/xferlog in this case. Ru\_dr2yI}  
#xferlog_std_format=YES U 4,2br>  
# C>QIrZu  
# You may change the default value for timing out an idle session. xN"Z1n7t  
#idle_session_timeout=600 NgZUnh3{  
# my.`k'  
# You may change the default value for timing out a data connection. 4)1;0,tlG  
#data_connection_timeout=120 3f76kl(&  
# -9Ws=r0R  
# It is recommended that you define on your system a unique user which the ANMg  
# ftp server can use as a totally isolated and unprivileged user. \h{r;#g  
#nopriv_user=ftpsecure V5rp.~   
# IB5BO7J  
# Enable this and the server will recognise asynchronous ABOR requests. Not /SR^C$h'I  
# recommended for security (the code is non-trivial). Not enabling it, HgRwi It  
# however, may confuse older FTP clients. P=8>c'Q  
#async_abor_enable=YES i+vsp@d  
# eE8ULtO  
# By default the server will pretend to allow ASCII mode but in fact ignore _}Ps(_5D  
# the request. Turn on the below options to have the server actually do ASCII @xWdO,#  
# mangling on files when in ASCII mode. *OTS'W~t  
# Beware that on some FTP servers, ASCII support allows a denial of service j|(Z#3J  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd ^ @=^;nB  
# predicted this attack and has always been safe, reporting the size of the vK'?:}~  
# raw file. pBJAaCGm  
# ASCII mangling is a horrible feature of the protocol. #gbH^a'  
ascii_upload_enable=YES m:CTPzAt  
ascii_download_enable=YES DPDe>3Mi[  
# mxG]kqi  
# You may fully customise the login banner string: 3.R#&Zxt  
#ftpd_banner=Welcome to blah FTP service. ^y_fRP~  
# ^>$P)=O:v  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently #Z!b G?="  
# useful for combatting certain DoS attacks. U9d:@9Y  
#deny_email_enable=YES #;tT8[Ewuw  
# (default follows) _7)F ?  
#banned_email_file=/etc/vsftpd/banned_emails 12`_;[37  
# m~l F`?  
# You may specify an explicit list of local users to chroot() to their home U]4pA#*{|  
# directory. If chroot_local_user is YES, then this list becomes a list of Xa 9TS"  
# users to NOT chroot(). /X8 <C=}  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that 8\ha@&p  
# the user does not have write access to the top level directory within the j ) vlM+  
# chroot) !fkep=  
#chroot_local_user=YES P>Qpv Sd_#  
#chroot_list_enable=YES '?*g%Yuz  
# (default follows) 3tS~:6-/  
#chroot_list_file=/etc/vsftpd/chroot_list M^madx6`  
# {{yt*7k{  
# You may activate the "-R" option to the builtin ls. This is disabled by J{"kw1Lu  
# default to avoid remote users being able to cause excessive I/O on large sKaE-sbJY  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume !sSQQo2Sv  
# the presence of the "-R" option, so there is a strong case for enabling it. ,d,\-x-+/  
#ls_recurse_enable=YES VV_l$E$  
# irBDGT~  
# When "listen" directive is enabled, vsftpd runs in standalone mode and T~8  .9g  
# listens on IPv4 sockets. This directive cannot be used in conjunction \>/M .2  
# with the listen_ipv6 directive. [THG4582oB  
listen=YES ><?BqRm+  
#  q" @  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 2s ,8R  
# sockets, you must run two copies of vsftpd with two configuration files. BNGe exs@  
# Make sure, that one of the listen options is commented !! lT8\}hNI+  
#listen_ipv6=YES L):U"M>]=  
M~ h8Crz  
pam_service_name=vsftpd ,2[ra9n  
userlist_enable=YES y>VcgLIB  
tcp_wrappers=YES mXWTm%'[  
B)SLG]72f  
convert_charset_enable=1 eARk QV  
local_charset=UTF8 Bd0eC#UGkQ  
remote_charset=WIN1251 S4NL "m  
double_377=0 ;-mdi/*g  
25{ uz  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules 3HV%4nZLf  
0au)g!ti  
anti_bruteforce=1 wNCCH55Pt  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. 8|1^|B(l  
[G|mY6F^  
http_enable=no +54aO  
ftp_enable=yes pNaiXu3  
http_browse=no `d]Z)*9  
m$Y :0_^-  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html 8}p8r|d!ls  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html ~Vh=5J~  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html &vUq}r%P  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html ,i}|5ozj4  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html T`YwJ6N  
H -t|i  
one_process_model=no
级别: 新人
发帖
1
云币
1
只看该作者 6楼 发表于: 09-08
Reftp客户端连接不上ftp服务器?
我也遇到同样的问题,FTP就是连接不上ECS
级别: 新人
发帖
6
云币
18
只看该作者 7楼 发表于: 09-10
Reftp客户端连接不上ftp服务器?
阿里云为了安全,限制了的
级别: 程序猿
发帖
484
云币
730
只看该作者 8楼 发表于: 09-11
需要在安全组放行端口21,如果是被动模式 还需要放行39000-40000(要看服务端的设置)。
6'a1]K  
`mp3ORR;$  
 
[ 此帖被服务器云在2018-11-09 21:11重新编辑 ]
级别: 小白
发帖
20
云币
22
只看该作者 9楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 6i=Nk"d  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 16 - 11 = ?
上一个 下一个