阿里云
发表主题 回复主题
  • 16287阅读
  • 10回复

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

级别: 新人
发帖
17
云币
23
1、在本地己电脑的命令行,输入密码之后就报下面的错误 vIoV(rc+  
"z^&>#F  
zLs[vg.(  
z'G~b[kG4n  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site qGE?[\t[6  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... s57-<&@J9  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. }a(x L'F  
密码: (]Z$mv!  
0#}@- e  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & ?\QEK  
sched)'aborting... 31n5n  
500 OOPS: priv_sock_get_result远程主机关闭连接。 ^XV=(k;~bX  
?w}E/(r  
+M+ht  
dnby&-+T  
8q6b3q:c  
p2|BbC\N  
rKDMIECrm  
QOECpk-  
4JTFdbx  
n')#]g0[  
}ST9&w i~  
|(e`V  
{YCquoF  
)+[{MR '  
$vS`w4Y  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: FTtGiGd|Zy  
9w -t9X>X  
aDx{Q&  
&#'[]V%^F  
        *** CuteFTP 9.0 - build Nov  9 2012 *** 4c2*)x$@  
.1u"16_  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... d jeax  
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)... af]&3(33  
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. [@OXvdTV  
        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. /@5X0m  
        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. kfo, PrW`A  
        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. 8X`Gm!)  
        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. Gw6*0& 3')  
        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. Mg.xGST  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... FO{K=9O  
b$P=rIB  
xp%,@] p  
d%Zt]1$  
uh UC m  
C+-xC~  
KaC+x-%K  
J7BfH,o  
q<rB(j-(  
oc,a  
l6.z-Qw  
注:gzh/密码,这个是新建的用户。 'vT XR_D  
d#.9!m~.  
级别: 新人
发帖
17
云币
23
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 X62h7?'Pd  
5An| #^]  
WR=e$ ;  
p`-`(i=iJo  
------------ 5_b`QO  
netstat -na命令,输出如下: 3!^5a %u  
RuDn1h#u{  
d ! A)H<Zt  
login as: root y\b.0-z  
root@182.92.197.238's password: Tm@d;O'E1  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 L)JpMf0  
Er?Wg09  
Welcome to aliyun Elastic Compute Service! CXGq>cQ=d  
%iY-}uhO  
C)/uX5  
[root@iZ25p3ad0ffZ ~]# netstat -na O.e^? ysp/  
Active Internet connections (servers and established) $QmP' <  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e $:w4_X5T  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN 9VdVom|e  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN @yPa9Ug(V  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN wy"^a45h  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN P 0,) Gw  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN $}r*WZ  
………… b5_(Fv  
ufm`h)N  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? Fe(qf>E  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
23
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 %J06]FG7  
lY5a=mwHU  
v)(tB7&`=  
L]o 5=K  
------------------- _"8\k 7S*  
Ly?yW S-x  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost q9j9"M'  
lftp gzh@localhost:~> g->cgExj  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
23
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 *cWmS\h|  
vsftpd服务也已经启动。 cIXwiC8t  
P+e KZo  
2、都说要看vsftpd配置文件啥的,请问要配置啥? m9M FwfZ  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? _RMQy~&b  
us?&:L|!=  
UVf\2\Y  
---------------- ;D ~L|  
完整的配置文件如下: 3l!NG=R  
!- C' }  
b|^I<7  
# Example config file /etc/vsftpd/vsftpd.conf Hv#q:R8  
# /I&wj^   
# The default compiled in settings are fairly paranoid. This sample file pw>m.=9|y  
# loosens things up a bit, to make the ftp daemon more usable. 'p)Q68;&  
# Please see vsftpd.conf.5 for all compiled in defaults. '(@YK4_M  
# uMXc0fs!$  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. %@& a7JOL  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's (g/7yO(s  
# capabilities. OKuD"   
# >AD =31lq  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). O^{1RV3:,T  
anonymous_enable=NO ]XUl@Y.   
# ty1fcdFZM  
# Uncomment this to allow local users to log in. x49!{}  
local_enable=YES ateUpGM QU  
# \Z5 +$Ij  
# Uncomment this to enable any form of FTP write command. 4dhqLVgL{  
write_enable=YES -@%%*YI>  
# ,-*iCs<  
# Default umask for local users is 077. You may wish to change this to 022, Iur9I>8h  
# if your users expect that (022 is used by most other ftpd's) \,W.0#D8v4  
local_umask=022  o sdOw8  
# N} />rD  
# Uncomment this to allow the anonymous FTP user to upload files. This only 3VCqp13  
# has an effect if the above global write enable is activated. Also, you will Y'm=etE  
# obviously need to create a directory writable by the FTP user. HR{s&ho  
anon_upload_enable=NO P 15:,9D  
# `bgb*Yaod  
# Uncomment this if you want the anonymous FTP user to be able to create Z}Cqd?_')  
# new directories. VZxTx0: ,  
anon_mkdir_write_enable=NO ySX/=T:<;  
# 1 tfYsg=O  
# Activate directory messages - messages given to remote users when they 2bQ/0?.).-  
# go into a certain directory. }0eg{{g8  
dirmessage_enable=YES tjzA)/T,4  
# O8RzUg&  
# Activate logging of uploads/downloads. tP'GNsq+m  
xferlog_enable=YES ?vbDB4  
# N=fz/CD)I  
# Make sure PORT transfer connections originate from port 20 (ftp-data). Xz1c6mX|o  
connect_from_port_20=YES w!,QxrOV~  
# 3ut_Bt\  
# If you want, you can arrange for uploaded anonymous files to be owned by `ut)+T V  
# a different user. Note! Using "root" for uploaded files is not o<\6Rm  
# recommended! zGs|DB  
#chown_uploads=YES $[e%&h@JR  
#chown_username=whoever I)[B9rbe  
# K`+vfqX  
# You may override where the log file goes if you like. The default is shown HYIRcY  
# below. $%}>zqD1  
xferlog_file=/var/log/vsftpd.log )1z4q`  
# 5ZsDgOeY  
# If you want, you can have your log file in standard ftpd xferlog format. 2]Fu 1  
# Note that the default log file location is /var/log/xferlog in this case. 9/46%=&]  
#xferlog_std_format=YES qRUCnCZs  
# cju@W]!  
# You may change the default value for timing out an idle session. \(9p&"Q-  
#idle_session_timeout=600 _W+Q3Jx-(  
# Q!) z)-hI  
# You may change the default value for timing out a data connection. +3?`M<L0  
#data_connection_timeout=120 nOuN|q=C  
# TQ~&Y)".  
# It is recommended that you define on your system a unique user which the w%~qB5wF6  
# ftp server can use as a totally isolated and unprivileged user. /C7svH  
#nopriv_user=ftpsecure 7 s-`QdWX  
# wy\o*P9mG)  
# Enable this and the server will recognise asynchronous ABOR requests. Not }wG|%Y#+r  
# recommended for security (the code is non-trivial). Not enabling it, Fj3^ #ly  
# however, may confuse older FTP clients. yUj;4vd  
#async_abor_enable=YES ZpTi:3>  
# u= l0f6W  
# By default the server will pretend to allow ASCII mode but in fact ignore af^@ .$ |  
# the request. Turn on the below options to have the server actually do ASCII z=%IcSx;  
# mangling on files when in ASCII mode. e mC\i  
# Beware that on some FTP servers, ASCII support allows a denial of service ndB@J*Imu  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd q"l>`KCG`  
# predicted this attack and has always been safe, reporting the size of the _we3jzMW  
# raw file. l]/> `62  
# ASCII mangling is a horrible feature of the protocol. `^`9{@~  
ascii_upload_enable=YES /o'oF  
ascii_download_enable=YES &LwJ'h +nd  
# n<+~ zQ  
# You may fully customise the login banner string: +:b(%|  
#ftpd_banner=Welcome to blah FTP service. h#;?9DP  
# "1\(ZKG8^Q  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently @!,D%]8"  
# useful for combatting certain DoS attacks. AwA1&mh  
#deny_email_enable=YES ^Y#@$c  
# (default follows) fg< ( bXC  
#banned_email_file=/etc/vsftpd/banned_emails Y9/{0TArG  
# X #H:&*[!  
# You may specify an explicit list of local users to chroot() to their home +i2YX7Of  
# directory. If chroot_local_user is YES, then this list becomes a list of i<0D Z_rub  
# users to NOT chroot(). yr (g~MQ  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that z`;&bg\8  
# the user does not have write access to the top level directory within the ]kzv8#  
# chroot) ;}$Z 80  
#chroot_local_user=YES [`cdlx?Eh  
#chroot_list_enable=YES sf<Q#ieTxY  
# (default follows) !7ph,/P$7  
#chroot_list_file=/etc/vsftpd/chroot_list ;,()wH  
# :Xh_$4~^Y  
# You may activate the "-R" option to the builtin ls. This is disabled by 7j4ej|Fjo  
# default to avoid remote users being able to cause excessive I/O on large dw'<"+zO  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume |;X?">7NW  
# the presence of the "-R" option, so there is a strong case for enabling it. )R8%wk?2  
#ls_recurse_enable=YES +"TI_tK, S  
# BLWA!-  
# When "listen" directive is enabled, vsftpd runs in standalone mode and -ryDsq  
# listens on IPv4 sockets. This directive cannot be used in conjunction (rau8  
# with the listen_ipv6 directive. dcV,_  
listen=YES Xp<A@2wt?  
# A73V6"  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 3P%w-qT!N  
# sockets, you must run two copies of vsftpd with two configuration files. z" b/osV  
# Make sure, that one of the listen options is commented !! ^D% }V-"  
#listen_ipv6=YES |iLx $P6  
*%P>x}6w3  
pam_service_name=vsftpd wrZ7Sr!/V  
userlist_enable=YES Gp?ToS2^d  
tcp_wrappers=YES /k4^&  
> C*?17\  
convert_charset_enable=1 ;:#?~%7>  
local_charset=UTF8 Nb|3?c_  
remote_charset=WIN1251 z 'vdC  
double_377=0 s$SU vo1J  
Fi?U)T+%+  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules "z{_hp{T^  
X+?Il)Bv  
anti_bruteforce=1 CS^ oiV%{s  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. F]URf&U  
IS5.i95m  
http_enable=no P;HVLflu  
ftp_enable=yes ^rxfNcU7  
http_browse=no i5L+8kx4  
CYTuj>Ww  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html FOlA* U4U  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html $ DABR  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html gLXvw]  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html h=i A;B^>  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html +[X.-,yW  
\ pe[V~F  
one_process_model=no
级别: 新人
发帖
1
云币
1
只看该作者 6楼 发表于: 09-08
Reftp客户端连接不上ftp服务器?
我也遇到同样的问题,FTP就是连接不上ECS
级别: 新人
发帖
6
云币
18
只看该作者 7楼 发表于: 09-10
Reftp客户端连接不上ftp服务器?
阿里云为了安全,限制了的
级别: 程序猿
发帖
318
云币
489
只看该作者 8楼 发表于: 09-11
需要在安全组放行端口21,如果是被动模式 还需要放行39000-40000(要看服务端的设置)。
8\H*Z2yF+  
k6b0&il  
 
[ 此帖被服务器云在2018-09-19 08:45重新编辑 ]
级别: 小白
发帖
18
云币
18
只看该作者 9楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 Kp ~k!6x  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: ECS是阿里云提供的什么服务? 正确答案:云服务器
上一个 下一个