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

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

级别: 新人
发帖
17
云币
24
1、在本地己电脑的命令行,输入密码之后就报下面的错误 bI0+J)  
{Ao^3vB  
l.'E\3Bo  
!ZcA Ltq  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site ATkqzE`;  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... ?B4QTx9B  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. ^mb*w)-p?  
密码: :fQ*'m,  
2xxwQwg8  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & K&oO+G^f  
sched)'aborting... 545xs`Q_  
500 OOPS: priv_sock_get_result远程主机关闭连接。 +:8YMM#9V  
eEFT(e5.>3  
<p8y'KAlc  
cLF>Jvs*J  
"qp_*Y  
c8W=Is`  
wB GxJ\+M  
`215Llzk;  
No+zw%l0E  
xef7mx  
9_dsiM7CT  
T}On:*&  
j<5R$^?U  
0pz X!f1~  
MM7gMAA.mz  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: hY'%SV p  
~+ur*3X  
rrq-so1u}  
Fje%hcV  
        *** CuteFTP 9.0 - build Nov  9 2012 *** 4 ETVyK|  
(q7mzZY  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... \`x'g)z(i  
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)... 2J <Z4Ap  
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. 9|DC<Zn&B#  
        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. ;I' ["k%  
        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. ],4LvIPD  
        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. - d6>  
        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. RT9@&5>il  
        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. d_hcv|%  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... 06 1=pV$CJ  
sP7(1)\  
9NAlgET  
r8$TT\?~  
 X'<xw  
zq&lxySa  
f|)t[,c  
Sq QB>;/p  
\h4y,sl  
yuB BO:\.  
WBIS  
注:gzh/密码,这个是新建的用户。 V}?5=f'  
g11K?3*%Q  
本帖最近评分记录: 1 条评分 云币 +1
光山居士 云币 +1 阿里云服务器ECS 2折起_1块钱/天 https://iil.ink/quanmin293 04-12
级别: 新人
发帖
17
云币
24
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 \T?O.  
YuZnuI@m9  
0Qz \"gr  
`4MPXfoBL  
------------  ar yr  
netstat -na命令,输出如下: sXTO`W/  
D? ($R9t  
dj#<,e\  
login as: root JT+P>\\];'  
root@182.92.197.238's password: SL*(ZEn"  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 4-MA!&  
?`xId;}J#7  
Welcome to aliyun Elastic Compute Service! 6 S8#[b  
5o?bF3  
/D12N'VaE  
[root@iZ25p3ad0ffZ ~]# netstat -na (+@H !>r$$  
Active Internet connections (servers and established) j<[<qU:  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e V>hy5hDpH  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN )9$Xfq/  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN @m6E*2Gg  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN {r"HR%*u  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN KM6r}CDHs  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN =8]'/b  
………… ppxu\a  
g)zy^ aDf  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? "ey~w=B$M  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
24
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 vQA: \!  
gX);/;9mm+  
.Emw;+>  
" 4s,a  
------------------- _,5(HETE2  
++xEMP)  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost Dk:Zeo]+my  
lftp gzh@localhost:~> !IP[C?(nB  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
24
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 Xfk&{zO-j  
vsftpd服务也已经启动。 =]E;wWC  
8g^OXZ   
2、都说要看vsftpd配置文件啥的,请问要配置啥? =2# C{u.  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? ZmUS}   
r)q6^|~47  
"EDn;l-Q  
---------------- Q];+?Pu.  
完整的配置文件如下: (F +if  
JEGcZeq)  
iE0A-;:5  
# Example config file /etc/vsftpd/vsftpd.conf 32:q'   
# {eMu"<  
# The default compiled in settings are fairly paranoid. This sample file P10`X&  
# loosens things up a bit, to make the ftp daemon more usable. iO(9#rV  
# Please see vsftpd.conf.5 for all compiled in defaults. L00,{g6wqb  
# <$K%u?  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. ~W_m<#K(  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's !Yz~HO,u+  
# capabilities. ; P&K a  
# N yFa2Ihd  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). j"7 z  
anonymous_enable=NO 4hr;k0sD  
# S9t_2%e  
# Uncomment this to allow local users to log in. h 1:uTrtA  
local_enable=YES 25NZIal<  
# y}R{A6X)  
# Uncomment this to enable any form of FTP write command. r*OSEzGUz  
write_enable=YES %F` c Nw]  
# ^8a,gA8.  
# Default umask for local users is 077. You may wish to change this to 022, A\ CtM`  
# if your users expect that (022 is used by most other ftpd's) pJ;J>7Gt  
local_umask=022 tK`sVsm>  
# FAzshR  
# Uncomment this to allow the anonymous FTP user to upload files. This only ;@Alr?y  
# has an effect if the above global write enable is activated. Also, you will BOQ2;@:3  
# obviously need to create a directory writable by the FTP user. b54<1\&  
anon_upload_enable=NO 7%c9 nY  
# ! ;x  
# Uncomment this if you want the anonymous FTP user to be able to create G^ZL,{  
# new directories. ;O}%_ef@  
anon_mkdir_write_enable=NO ka0T|$ u(s  
# S#8wnHq  
# Activate directory messages - messages given to remote users when they . p^='Kz?  
# go into a certain directory. G|Yw a=  
dirmessage_enable=YES `(vgBz`e[  
# ;cH|9m:Y  
# Activate logging of uploads/downloads. 3;zJ\a.+  
xferlog_enable=YES fIu5d6;'  
# >0k7#q}O  
# Make sure PORT transfer connections originate from port 20 (ftp-data). ClCb.Ozj4  
connect_from_port_20=YES EDcR:Dw3  
# o3P`y:&  
# If you want, you can arrange for uploaded anonymous files to be owned by s#/JMvQ#  
# a different user. Note! Using "root" for uploaded files is not #I|Vyufw  
# recommended! o7i/~JkTP  
#chown_uploads=YES PspH[db  
#chown_username=whoever : ~"^st_[!  
# GNS5v-"H  
# You may override where the log file goes if you like. The default is shown @>,3l;\Zh  
# below. yv =LT~  
xferlog_file=/var/log/vsftpd.log j#S>8: G  
# .Qg!_C  
# If you want, you can have your log file in standard ftpd xferlog format. ~O;!y%  
# Note that the default log file location is /var/log/xferlog in this case. =u QCm#  
#xferlog_std_format=YES $~`a,[e<  
# B$1nq#@  
# You may change the default value for timing out an idle session. :{pvA;f  
#idle_session_timeout=600 )tl=tH/$  
# TS^(<+'  
# You may change the default value for timing out a data connection. gV1&b (h  
#data_connection_timeout=120 'C)^hj.  
# _6Wz1.]n  
# It is recommended that you define on your system a unique user which the $IX>o&S@|  
# ftp server can use as a totally isolated and unprivileged user. 4Z)`kS} =]  
#nopriv_user=ftpsecure { :xINQ=}D  
# M7^PWC  
# Enable this and the server will recognise asynchronous ABOR requests. Not zYO+;;*@  
# recommended for security (the code is non-trivial). Not enabling it, ]|18tVXc  
# however, may confuse older FTP clients. d|k6#f-E  
#async_abor_enable=YES E#JDbV1AC  
# D{'x7!5r  
# By default the server will pretend to allow ASCII mode but in fact ignore b)9bYkd  
# the request. Turn on the below options to have the server actually do ASCII 4SCb9| /Q  
# mangling on files when in ASCII mode. . \M@oF  
# Beware that on some FTP servers, ASCII support allows a denial of service zB/$*Hd  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd ';us;xR#  
# predicted this attack and has always been safe, reporting the size of the hAi50q;z  
# raw file. p)vyZY[  
# ASCII mangling is a horrible feature of the protocol. #x$.  
ascii_upload_enable=YES $]|fjB#D  
ascii_download_enable=YES Y,I0o{,g  
# VJ;n0*/  
# You may fully customise the login banner string: [_*%  
#ftpd_banner=Welcome to blah FTP service. 9Xo'U;J  
# &:`T!n  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently Sq8` )$\  
# useful for combatting certain DoS attacks. " NnUu 8x  
#deny_email_enable=YES ^]o]'  
# (default follows) h~{TCK+I  
#banned_email_file=/etc/vsftpd/banned_emails 4]0|fi3}>  
# c7X5sMM,  
# You may specify an explicit list of local users to chroot() to their home o7<pI8\  
# directory. If chroot_local_user is YES, then this list becomes a list of ag^EH"%zw  
# users to NOT chroot(). >M[wh>  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that [R*UPa  
# the user does not have write access to the top level directory within the QyQ&xgS  
# chroot) Tn,'*D@l  
#chroot_local_user=YES `VY -3  
#chroot_list_enable=YES hz{=@jX  
# (default follows) ^M6xRkI  
#chroot_list_file=/etc/vsftpd/chroot_list RhIRCN9  
# 4<fKB&  
# You may activate the "-R" option to the builtin ls. This is disabled by )w_0lm'v{r  
# default to avoid remote users being able to cause excessive I/O on large ukb2[mb*u  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume d|CSWcU  
# the presence of the "-R" option, so there is a strong case for enabling it. F+ qRC_C>O  
#ls_recurse_enable=YES Q$Qs$  
# f(!:_!m*  
# When "listen" directive is enabled, vsftpd runs in standalone mode and mu`h6?v  
# listens on IPv4 sockets. This directive cannot be used in conjunction $K>'aI;|  
# with the listen_ipv6 directive. l\< *9m<  
listen=YES =EwC6+8*M  
# k2DT+}u7G  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 $}RBK'cr}  
# sockets, you must run two copies of vsftpd with two configuration files. - `F#MN  
# Make sure, that one of the listen options is commented !! dlkxA^  
#listen_ipv6=YES ]pr(hk  
%K[_;8  
pam_service_name=vsftpd 5/4N  Y  
userlist_enable=YES >KXSb@  
tcp_wrappers=YES 7\I,;swo  
}tue`">h  
convert_charset_enable=1 QII-9 RxX"  
local_charset=UTF8 0Snl_@s  
remote_charset=WIN1251 TpXbJ]o9  
double_377=0 |35"V3bs  
Q${0(#Nu  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules {`~uBz+dJq  
Wg X9k J  
anti_bruteforce=1 9>,$q"M}?  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. B>sSl1opI  
^y:!=nX^  
http_enable=no j)?[S  
ftp_enable=yes j6x1JM  
http_browse=no j"g[qF/*  
}i,LP1R  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html AA$+ayzx9{  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html qQ\&]  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html XIQfgrGZ  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html w0W9N%f#=  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html h\C" ti2  
fCg"tckE  
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(要看服务端的设置)。
nMz~.^Q-  
]t4 9Efw  
 
[ 此帖被服务器云在2018-11-26 22:14重新编辑 ]
级别: 小白
发帖
20
云币
22
只看该作者 9楼 发表于: 2018-09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 Stq [[S5P  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 2018-09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)