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

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

级别: 新人
发帖
17
云币
23
1、在本地己电脑的命令行,输入密码之后就报下面的错误 lbPn<  
TpI8mDO\W  
/1_O5'5+v  
^]Q.V  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site ?f6SKC  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... E!uQ>'iq.  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. Q pIec\a+  
密码: K_k'#j~*?  
;j qF:Wl@  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & H[}lzL)  
sched)'aborting... JSID@ n<b?  
500 OOPS: priv_sock_get_result远程主机关闭连接。 CH q5KB98+  
)&Z`SaoP|J  
/qMiv7m~Q  
f'*/IG  
%m [l/,2x  
 \< dg  
Jfo'iNOu  
3177R>0  
lBm`W]3T  
1Oq VV?oz  
gXU(0(Gq  
An^)K  
n5;@}Rai  
%yd(=%)fMB  
<P/odpmc  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: ^Wn+G8n  
k_uI&,  
G B"Orm.  
1Kr$JIcd  
        *** CuteFTP 9.0 - build Nov  9 2012 *** lrL:G[rt  
_l1"X^Aa  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... #9 Fk&Lx  
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)... JYmYX-  
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. q2'}S A/  
        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. cB36w$n8  
        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. :U=3*f.{  
        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. T>7N "C  
        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. #XB3Wden2  
        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. cvE)  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... ,>za|y<n  
+u*Pi  
i$`o,m#  
r:$*pC&{  
Km!ACA&s6  
uK`gveY  
G-|c%g!ejf  
S=.%aB  
NZa 7[}H  
z^jmf_  
ryw%0H18  
注:gzh/密码,这个是新建的用户。 c q[nqjC=  
/#SfgcDt  
级别: 新人
发帖
17
云币
23
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 .VNz( s  
1 gcWw, /  
q_`j-!  
7l/lY-zO  
------------ s$qc &  
netstat -na命令,输出如下: [! wJIy?,  
Bq HqS  
wIR"!C>LE  
login as: root ='w 2"4  
root@182.92.197.238's password: ,}@4@ >?K  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 Mzg P@tB  
a#i|)[  
Welcome to aliyun Elastic Compute Service! ?Js4 \X!uJ  
ZzTkEz >  
[7HBn  
[root@iZ25p3ad0ffZ ~]# netstat -na z^.dYb7<  
Active Internet connections (servers and established) |<,0*2  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e ;|oft-y  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN mD ZA\P_  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN WQ8 "Jj?k6  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN 94dd )/a  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN @RszPH1B  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN _[rQt8zn  
………… %+,*$wk#*  
dI%ho<zm]  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? ^~'tQ}]!"  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
23
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 @TBcVHy  
-}#=L@  
W6%\Zwav?)  
xMsSZ{j%5  
------------------- Aj#bhv  
DLggR3K_\  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost <cS"oBh&u0  
lftp gzh@localhost:~> B?n 6o|8  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
23
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 y9pQ1H<F;  
vsftpd服务也已经启动。 m`I6gnLj  
2Z\6xb|u  
2、都说要看vsftpd配置文件啥的,请问要配置啥? }yK_2zak5i  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? J0C,K U(  
~BDVmQa  
a^,6[  
---------------- $X WJxQRUv  
完整的配置文件如下: )0yY|E\  
kJZBQ<^  
sn}U4=u  
# Example config file /etc/vsftpd/vsftpd.conf )l\BZndf  
# dAm( uJ  
# The default compiled in settings are fairly paranoid. This sample file g$EjIHb  
# loosens things up a bit, to make the ftp daemon more usable. ,l.O @  
# Please see vsftpd.conf.5 for all compiled in defaults. a4 O  
# R`:Y&)c_$  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.  Ae <v  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's T&tCXi  
# capabilities. [JO'ta  
# z"Gk K T  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). ]9l=geZd%;  
anonymous_enable=NO A+iQH1C0h  
# D ( <_1  
# Uncomment this to allow local users to log in. 0^? 3hK  
local_enable=YES rk-}@vp  
# N|h`}*:x=  
# Uncomment this to enable any form of FTP write command. ,}=x8Xxr  
write_enable=YES uV#/Lgw{M  
# KNic$:i  
# Default umask for local users is 077. You may wish to change this to 022, xD8x1-  
# if your users expect that (022 is used by most other ftpd's) ]mn(lK  
local_umask=022 2(\~z@g  
# lw\OsB$  
# Uncomment this to allow the anonymous FTP user to upload files. This only "c\ZUx_i6  
# has an effect if the above global write enable is activated. Also, you will ullq}}  
# obviously need to create a directory writable by the FTP user. W&;X+XA_W  
anon_upload_enable=NO l=Jbuc  
# |4\.",Bg  
# Uncomment this if you want the anonymous FTP user to be able to create JrQd7  
# new directories. d?$FAy'o5  
anon_mkdir_write_enable=NO g|9' Lk  
# ]>b.oI/  
# Activate directory messages - messages given to remote users when they c]P`U(q9TV  
# go into a certain directory. <*i '  
dirmessage_enable=YES J)6RXt*!  
# m;>HUTj  
# Activate logging of uploads/downloads. $A`D p{e"  
xferlog_enable=YES ac6L3=u\  
# ?dl7!I@<E<  
# Make sure PORT transfer connections originate from port 20 (ftp-data). *T$`5|  
connect_from_port_20=YES nr Jl>H  
# P 5yS`v$@  
# If you want, you can arrange for uploaded anonymous files to be owned by n-be8p)-  
# a different user. Note! Using "root" for uploaded files is not s(w6Ldi  
# recommended! "~:o#~F6  
#chown_uploads=YES qt=gz6!  
#chown_username=whoever Du k v[/60  
# _n,Ye&m  
# You may override where the log file goes if you like. The default is shown ?lKFcm  
# below. c:.k2u  
xferlog_file=/var/log/vsftpd.log Vahfz8~w/  
# U iqHUrx  
# If you want, you can have your log file in standard ftpd xferlog format. h$)+$^YI  
# Note that the default log file location is /var/log/xferlog in this case. cT'D2Yeq  
#xferlog_std_format=YES D4g$x'  
# \Bg;}\8 X  
# You may change the default value for timing out an idle session. (, Il>cR4  
#idle_session_timeout=600 p&/}0eL y  
# 9^h0D}#@  
# You may change the default value for timing out a data connection. O~N0JK_>  
#data_connection_timeout=120 ;HtHN K(o  
# wWB-P6  
# It is recommended that you define on your system a unique user which the \R#]}g0!  
# ftp server can use as a totally isolated and unprivileged user. Tp2`eY5  
#nopriv_user=ftpsecure 78&jaw*1A  
# E96FwA5  
# Enable this and the server will recognise asynchronous ABOR requests. Not uO8z.  
# recommended for security (the code is non-trivial). Not enabling it, O>9+ tQ  
# however, may confuse older FTP clients. 0l=g$G \%  
#async_abor_enable=YES A0Pg|M  
# o{5es  
# By default the server will pretend to allow ASCII mode but in fact ignore x?v/|  
# the request. Turn on the below options to have the server actually do ASCII ~UA:_7#\M  
# mangling on files when in ASCII mode. wiKUs0|  
# Beware that on some FTP servers, ASCII support allows a denial of service T{-<G13  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd ltRvNXx+]  
# predicted this attack and has always been safe, reporting the size of the $Tci_(V=F  
# raw file. p2s*'dab7  
# ASCII mangling is a horrible feature of the protocol. @(Q 'J`  
ascii_upload_enable=YES N) D;)ZH  
ascii_download_enable=YES {}!`v%z  
# C\#E1\d  
# You may fully customise the login banner string: ?hu}wl)  
#ftpd_banner=Welcome to blah FTP service. Nr 5h%<` I  
# d;1%Ei3K  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently l>p S23  
# useful for combatting certain DoS attacks. #Duz|F+%  
#deny_email_enable=YES =w&JDj  
# (default follows) >(nb8T|  
#banned_email_file=/etc/vsftpd/banned_emails zQvp<IUq  
# 5H8]N#Y&  
# You may specify an explicit list of local users to chroot() to their home 8Ac5K!  
# directory. If chroot_local_user is YES, then this list becomes a list of Bs7/<$9K/  
# users to NOT chroot(). $]O;D~  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that gYb}<[O!  
# the user does not have write access to the top level directory within the t*X k'(v  
# chroot) #J&45  
#chroot_local_user=YES 7\ELr 5  
#chroot_list_enable=YES rq=D[vX\N(  
# (default follows) ~m4{GzB  
#chroot_list_file=/etc/vsftpd/chroot_list 1Q-O&\-xg  
# T#&tf^;  
# You may activate the "-R" option to the builtin ls. This is disabled by `x%( n@g  
# default to avoid remote users being able to cause excessive I/O on large Dxj&9Ra  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume 9&(d2  
# the presence of the "-R" option, so there is a strong case for enabling it. kC~\D?8E=  
#ls_recurse_enable=YES PU| X+V>  
# L{XNOf3  
# When "listen" directive is enabled, vsftpd runs in standalone mode and yc ize2>q  
# listens on IPv4 sockets. This directive cannot be used in conjunction ca~nfo  
# with the listen_ipv6 directive. rmVF88/;  
listen=YES \jlem<&  
# )8ub1,C  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 i n}N[  
# sockets, you must run two copies of vsftpd with two configuration files. aB@D-Y"HO  
# Make sure, that one of the listen options is commented !! ib$_x:OO"  
#listen_ipv6=YES !cblmF;0  
?"23XKe  
pam_service_name=vsftpd CVo2?ZQ  
userlist_enable=YES V)HX+D>  
tcp_wrappers=YES sw:o3cC]  
ji'NR  
convert_charset_enable=1 CJ'pZ]\G  
local_charset=UTF8 }r%Si  
remote_charset=WIN1251 ,_ zivUU  
double_377=0 G:u-C<^'  
0f"9w PC  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules m*'^*#  
f8Z[prfP  
anti_bruteforce=1 wOfx7D  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. w4 R!aWLd  
8 K7.; t1  
http_enable=no *OoM[wEY  
ftp_enable=yes &nJH23h ^  
http_browse=no x:Mh&dq?  
dCbRlW  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html ape \zZCV  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html (Nzup 3j  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html ly!vbpE_  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html uv&??F]/  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html w+,Kpb<x[0  
huPAWlxT  
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(要看服务端的设置)。
i2`.#YJ&v  
b tr x?k(  
 
[ 此帖被服务器云在2018-11-26 22:14重新编辑 ]
级别: 小白
发帖
20
云币
22
只看该作者 9楼 发表于: 2018-09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 &T| UAM.  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 2018-09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
批量上传需要先选择文件,再选择上传
 
验证问题: ECS是阿里云提供的什么服务? 正确答案:云服务器
上一个 下一个