阿里云
阿里云多端小程序中小企业获客首选
发表主题 回复主题
  • 29467阅读
  • 10回复

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

级别: 新人
发帖
17
云币
24
1、在本地己电脑的命令行,输入密码之后就报下面的错误 53?Ati\Y)  
|E;+j\   
AW'$5 NF>  
4O:HT m  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site 7X>*B~(R  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... \Y`psSf+  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. i(*fv(z  
密码: `6BQ6)7  
221}xhn5  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & N4b{^JkF  
sched)'aborting... ,(]k)ym/  
500 OOPS: priv_sock_get_result远程主机关闭连接。 " t?44[  
k5 *Z@a  
$M~`)UeV_  
z2Z}mktP  
hLVgP&/ E  
y|NY,{:]  
O-box?  
m>?|*a,  
[^XD @  
5DO}&%.xt  
4G hg~0  
"ZA`Lp;%w  
@, AB 2D  
T5}5uk9  
1lJ^$U  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: a&dP@)  
54/ZGaonz  
wUfPnAD.'  
Ns#L9T#  
        *** CuteFTP 9.0 - build Nov  9 2012 *** ]mjKF\  
&B++ "f  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... 7HL23Vr k  
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)... Zu>CR_C  
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. |CK/-UG}  
        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. CK_\K,xVT  
        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. FI)0.p  
        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. 2z1r|?l  
        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. gKgdu($NJ  
        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. Mko,((>I1  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... " Lh XR  
;!OME*?m<  
Q8h=2YL  
+eop4 |Z  
H>"P]Y)oX  
E/D@;Ym18  
?+$EPaC2  
}VVtv1  
a t=;}}X  
|>-0q~  
`qZ@eGZ z  
注:gzh/密码,这个是新建的用户。 u!b0 <E  
qSaCl6[Do  
本帖最近评分记录: 1 条评分 云币 +1
光山居士 云币 +1 阿里云服务器ECS 2折起_1块钱/天 https://iil.ink/quanmin293 04-12
级别: 新人
发帖
17
云币
24
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 }q?q)cG  
9v7}[`^  
Owh:(EJ"d  
|]?7r?=J9v  
------------ YCyh+%Q(  
netstat -na命令,输出如下: $@[Mo   
/ 6DW+!  
!ed0  
login as: root tpP68)<ns  
root@182.92.197.238's password: 6O'Y@9#  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 ^YEMR C  
Gk|T1%  
Welcome to aliyun Elastic Compute Service! V j[,o Vt$  
J z-RMX=  
`QT9W-0e^  
[root@iZ25p3ad0ffZ ~]# netstat -na K!gocNOf  
Active Internet connections (servers and established) ~vfPsaRh  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e y"ms;w'z  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN r<"k /  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN $u,`bX  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN H8!lSRq  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN Wk]E6yz6  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN uecjR8\e  
………… .kDJuJ^  
1xsB@D  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? QH6_nZY  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
24
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 us^J! s7  
(APGz,^9#  
Br"K{g?  
oo!JAv}~  
------------------- x]|-2t  
!ziO1U  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost w'P!<JaZ  
lftp gzh@localhost:~> s C?-L  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
24
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 WhN~R[LE_  
vsftpd服务也已经启动。 +`Ypc  
"A,-/~cBV  
2、都说要看vsftpd配置文件啥的,请问要配置啥? ~> |o3&G{  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? d@_|  
%v 1NDhaXz  
=aE!y5  
---------------- W\JwEb9Y  
完整的配置文件如下: P+[\9Gg  
YVB\9{H?  
sc &S0K  
# Example config file /etc/vsftpd/vsftpd.conf k\wI^D  
# 6$*ZH *  
# The default compiled in settings are fairly paranoid. This sample file zQ~8(E]Rf  
# loosens things up a bit, to make the ftp daemon more usable. uGH>|V9'c  
# Please see vsftpd.conf.5 for all compiled in defaults. E]j2%}6Z%  
# r__Y{&IO  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. [`Dv#  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's 6l-V% 3-  
# capabilities. Ju.B!)uS#  
# XhEd9>#  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). ([a[ fi  
anonymous_enable=NO O+Qt8,  
# sM$gfFx  
# Uncomment this to allow local users to log in. p?,:  
local_enable=YES rYYAZ(\8  
# *Af:^>mh  
# Uncomment this to enable any form of FTP write command. z}:|is)?  
write_enable=YES &E&e5(&$  
# A$]&j5nh|  
# Default umask for local users is 077. You may wish to change this to 022, s9'lw'  
# if your users expect that (022 is used by most other ftpd's) sHSD`mYq  
local_umask=022 1IRlFC  
# g-Y2U}&  
# Uncomment this to allow the anonymous FTP user to upload files. This only g:sn/Zug]  
# has an effect if the above global write enable is activated. Also, you will ;P#c!  
# obviously need to create a directory writable by the FTP user. l].Gz`L  
anon_upload_enable=NO ~ :\QC  
# u d V. $N  
# Uncomment this if you want the anonymous FTP user to be able to create MWxv\o   
# new directories. hS}d vZa  
anon_mkdir_write_enable=NO oS/cS)N20  
# Uz`K#Bz   
# Activate directory messages - messages given to remote users when they {T0f]]}Q  
# go into a certain directory. i]@QxzCSF  
dirmessage_enable=YES UtebSQ+h\  
# t)*MLg<C  
# Activate logging of uploads/downloads. kt ILKpHt"  
xferlog_enable=YES !u0qF!/W  
# `T gwa  
# Make sure PORT transfer connections originate from port 20 (ftp-data). ?x|8"*N  
connect_from_port_20=YES >(} I7  
# ;;2Yfn'`9  
# If you want, you can arrange for uploaded anonymous files to be owned by  .UUY9@  
# a different user. Note! Using "root" for uploaded files is not b`=\<u8  
# recommended! oTPPYi[r  
#chown_uploads=YES YB^[HE\#y  
#chown_username=whoever -xc*R%k  
# $:#{Y;d  
# You may override where the log file goes if you like. The default is shown YM idSfi  
# below. wIv_Z^% V  
xferlog_file=/var/log/vsftpd.log nnV(MB4z1  
# G8y:f%I!b  
# If you want, you can have your log file in standard ftpd xferlog format. $R'  
# Note that the default log file location is /var/log/xferlog in this case. 4+Sq[Rv0  
#xferlog_std_format=YES 5w\>Whbd  
# 39|4)1e  
# You may change the default value for timing out an idle session. dA`.  
#idle_session_timeout=600 \M H\!  
# aIrQ=}  
# You may change the default value for timing out a data connection. kIb)I(n  
#data_connection_timeout=120 cK;,=\  
# TsPx"+>7`  
# It is recommended that you define on your system a unique user which the 8b0!eB#_Ee  
# ftp server can use as a totally isolated and unprivileged user. L8&$o2+07r  
#nopriv_user=ftpsecure _Ra$"j  
# kj o,?$r %  
# Enable this and the server will recognise asynchronous ABOR requests. Not Q -!,yCu  
# recommended for security (the code is non-trivial). Not enabling it, X*'tJN$  
# however, may confuse older FTP clients. G8w<^z>pTg  
#async_abor_enable=YES 9t.u9C=!F  
# 03WLVP@  
# By default the server will pretend to allow ASCII mode but in fact ignore ]wH,534  
# the request. Turn on the below options to have the server actually do ASCII u~| D;e  
# mangling on files when in ASCII mode. :u%Jrc (W  
# Beware that on some FTP servers, ASCII support allows a denial of service Hh_Yd)  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd (vq0Gl  
# predicted this attack and has always been safe, reporting the size of the ?onaJ=mT  
# raw file. 5J d7<AO_  
# ASCII mangling is a horrible feature of the protocol. *} pl  
ascii_upload_enable=YES Zc_%hQf2A  
ascii_download_enable=YES 7oj ^(R,  
# K3uNR w  
# You may fully customise the login banner string: wABaNB=9;  
#ftpd_banner=Welcome to blah FTP service. +d7sy0  
# e)pQh& uD  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently ze+_iQ5  
# useful for combatting certain DoS attacks. :ET05MFs\#  
#deny_email_enable=YES zYCrfr  
# (default follows) G~SgI>Q  
#banned_email_file=/etc/vsftpd/banned_emails s*"Yi~  
# *Nv!Kuk  
# You may specify an explicit list of local users to chroot() to their home DB1GW,  
# directory. If chroot_local_user is YES, then this list becomes a list of "pP5;*^f  
# users to NOT chroot(). X2X.&^  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that qb^jcy  
# the user does not have write access to the top level directory within the s:_M+_7_  
# chroot) ;.Lf9XJ   
#chroot_local_user=YES vx:MLmZ.  
#chroot_list_enable=YES K+9oV[DMs  
# (default follows) <78]OZ] Z  
#chroot_list_file=/etc/vsftpd/chroot_list t<_Jx<{2  
# ~]+-<O^U~  
# You may activate the "-R" option to the builtin ls. This is disabled by >Oary  
# default to avoid remote users being able to cause excessive I/O on large BXNt@%  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume (&n4^tJ+_  
# the presence of the "-R" option, so there is a strong case for enabling it. aBo8?VV]8  
#ls_recurse_enable=YES ^%)H;  
# Y^zL}@  
# When "listen" directive is enabled, vsftpd runs in standalone mode and fZoV\a6Kj  
# listens on IPv4 sockets. This directive cannot be used in conjunction 6XVr-ef  
# with the listen_ipv6 directive. R|7yhsJq,  
listen=YES JsNqijVC  
# q3+G  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 5gZEcJ  
# sockets, you must run two copies of vsftpd with two configuration files. d3A= (/>D  
# Make sure, that one of the listen options is commented !! Gp=X1 F  
#listen_ipv6=YES \ (y6o}aW  
DP2 ^(d<  
pam_service_name=vsftpd b;wf7~a*  
userlist_enable=YES %GRD3S  
tcp_wrappers=YES GCN(  
Yg 8AMi  
convert_charset_enable=1 "CYh"4]@rD  
local_charset=UTF8 44H#8kV  
remote_charset=WIN1251 ]LFY2w<  
double_377=0 "NUl7ce.R  
kcy?;b;z  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules HGuY-f  
GA19=gow  
anti_bruteforce=1 +\SNaq~&  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. w7b?ve3-  
-4P2 2  
http_enable=no f_`gUMf  
ftp_enable=yes SHw%u~[hu  
http_browse=no \;0J6LBc  
q 6Q;9,  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html D]+0X8@kH7  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html s : c  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html I!(.tu6u6c  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html xPa>-N=*  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html "0pH@_8o{  
b6Jv|1w'  
one_process_model=no
级别: 新人
发帖
1
云币
1
只看该作者 6楼 发表于: 2018-09-08
Reftp客户端连接不上ftp服务器?
我也遇到同样的问题,FTP就是连接不上ECS
级别: 新人
发帖
6
云币
18
只看该作者 7楼 发表于: 2018-09-10
Reftp客户端连接不上ftp服务器?
阿里云为了安全,限制了的
级别: 程序猿
发帖
497
云币
745
只看该作者 8楼 发表于: 2018-09-11
需要在安全组放行端口21,如果是被动模式 还需要放行39000-40000(要看服务端的设置)。
y wlN4=  
yn<z!z%mz  
 
[ 此帖被服务器云在2018-11-26 22:14重新编辑 ]
级别: 小白
发帖
20
云币
22
只看该作者 9楼 发表于: 2018-09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 j[YzBXd V  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 2018-09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)