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

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

级别: 新人
发帖
17
云币
23
1、在本地己电脑的命令行,输入密码之后就报下面的错误 -dsB@nPiUw  
Ljq/f& c  
jRm:9`.Q  
-. L)-%wIV  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site Kw3fpNd  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... a~Sf~ka  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. S+R<wv ,6  
密码: P.gk'\<k  
}$hxD9z  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & ] ^to r  
sched)'aborting... v/c8P\  
500 OOPS: priv_sock_get_result远程主机关闭连接。 oylY1~~}0K  
`x lsvK>  
zawU  
!oLrN/-  
3q R@$pm  
-TU7GCb=  
@BbZ(cZ*  
o\@1\#a  
' jZ2^  
;o,t *  
SDcxro|8i  
[z]@ <99/  
=$}P'[V  
|VB}Kv  
J#L-Slav%  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: *DLv$/(0  
9bPQD{Qb  
Z@nM\/vLA  
>Gk<[0U  
        *** CuteFTP 9.0 - build Nov  9 2012 *** `. /[/ z-g  
NZ e3 m  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... !aeL*`;  
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)... |H2{%!  
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. `=^29LC#  
        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. U)zd~ug?m  
        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. 7,!Mmu  
        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. Y)N(uv6  
        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. t^Aios~F  
        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. k*-_CO-h  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... rnIv|q6@  
r9uY ?M  
T73oW/.0X?  
`-D6:- ,w  
\_!FOUPz(  
K-)*S\<}  
//JF$o=)D  
*wwLhweQ5W  
Umm_FEU#]  
6ApW+/  
Gnl6>/L,  
注:gzh/密码,这个是新建的用户。 "@gJ[BL#  
 s+[_5n~  
级别: 新人
发帖
17
云币
23
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 'an{<82i  
u,PrEmy-  
<z#r3J  
IQGIU3O  
------------ _( w4\]  
netstat -na命令,输出如下: (+Gd)iO  
).9-=P HlX  
18}L89S>  
login as: root IqfR`iAix  
root@182.92.197.238's password: plsf` a  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 oMLpl3pl  
csRba;Z[  
Welcome to aliyun Elastic Compute Service! ~SV;"e2N.  
(-B0fqh=G  
pJ+>qy5  
[root@iZ25p3ad0ffZ ~]# netstat -na ^P"t "  
Active Internet connections (servers and established) qlPjz*<h"H  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e @`%.\_  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN `WWf?g  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN </bWFW~x  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN ^nkwT~Bya  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN 6jCg7Su]  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN O5_E"um  
………… XiKv2vwA  
}mu8fm'  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? 'OX6e Y5  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
23
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 H`Z4a N  
^c(PZ,/#JB  
E$ngmm[  
QOF;j#H^  
------------------- 'Vrev8D  
lMm-K%(2  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost \W( p)M  
lftp gzh@localhost:~> &^uzg&,;  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
23
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 3'z$@ ;Ev+  
vsftpd服务也已经启动。 0b{jox\!B  
q=X<QhK  
2、都说要看vsftpd配置文件啥的,请问要配置啥? .aNh>`OT'  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? ({E,}x  
__ g?xw  
3RtVFDIZA"  
---------------- 63 oe0T&  
完整的配置文件如下: =2 HY]H  
Ic0Sb7c  
bY P8  
# Example config file /etc/vsftpd/vsftpd.conf {]dxFhe)  
# ?,$:~O* w  
# The default compiled in settings are fairly paranoid. This sample file fJ*^4  
# loosens things up a bit, to make the ftp daemon more usable. *HD(\;i-$  
# Please see vsftpd.conf.5 for all compiled in defaults. {bXN[=j  
# 77M!2S_E  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. x:)H Ii q/  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's ql@2<V{  
# capabilities. ~<_#%R!  
# J2Dn  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). ) f~;P+  
anonymous_enable=NO Nr*l3Z>LD  
# p6j-8ggL  
# Uncomment this to allow local users to log in. :<aGZ\R5  
local_enable=YES % G!!0V!  
# &oG>Rqkm  
# Uncomment this to enable any form of FTP write command. WXxnOLJr  
write_enable=YES j55_wx@cA  
# vl/!w2  
# Default umask for local users is 077. You may wish to change this to 022, Y^]n>X  
# if your users expect that (022 is used by most other ftpd's) ;> 7~@ K  
local_umask=022 ZRjM^ d;  
# ' wl})  
# Uncomment this to allow the anonymous FTP user to upload files. This only 9Buss+K?/h  
# has an effect if the above global write enable is activated. Also, you will ?eTZ>o.p/  
# obviously need to create a directory writable by the FTP user. uRy}HLZ"  
anon_upload_enable=NO I q|'#hs  
# cWQJ9.:7  
# Uncomment this if you want the anonymous FTP user to be able to create )Cdw_Yx  
# new directories. |r+ x/,2-  
anon_mkdir_write_enable=NO c7+6[y DVE  
# J0Yb_(w  
# Activate directory messages - messages given to remote users when they ! #Pn_e  
# go into a certain directory. V n_&q6Pa  
dirmessage_enable=YES w#1BHx  
# F(1E@xs  
# Activate logging of uploads/downloads. 7z$53z  
xferlog_enable=YES `n6cpX5  
# oJM; CN  
# Make sure PORT transfer connections originate from port 20 (ftp-data). i?B<&'G  
connect_from_port_20=YES xlZh(pf  
# Ju>QQOxi|  
# If you want, you can arrange for uploaded anonymous files to be owned by r~=+>, _  
# a different user. Note! Using "root" for uploaded files is not GQg 2!s(  
# recommended! 0VvY(j:hp  
#chown_uploads=YES UZ/LR  
#chown_username=whoever ->qRGUW  
# w5q6c%VZ  
# You may override where the log file goes if you like. The default is shown 6\l F  
# below. tV4yBe<``  
xferlog_file=/var/log/vsftpd.log  @mw1__?  
# #U0| j?!D  
# If you want, you can have your log file in standard ftpd xferlog format. iM!V4Wih6  
# Note that the default log file location is /var/log/xferlog in this case. 53/$8=  
#xferlog_std_format=YES >CG;df<~  
# &H+ wzx<  
# You may change the default value for timing out an idle session. +Q"s!\5  
#idle_session_timeout=600 .\H-?6R^  
# K:XXtG  
# You may change the default value for timing out a data connection. `Zp*?  
#data_connection_timeout=120 bZSt<cH3  
# )j]f ]8  
# It is recommended that you define on your system a unique user which the B_#M)d O  
# ftp server can use as a totally isolated and unprivileged user. y-@`3hYM@  
#nopriv_user=ftpsecure -DGuaUU  
# D7R;IA-w  
# Enable this and the server will recognise asynchronous ABOR requests. Not K4Ed]hX  
# recommended for security (the code is non-trivial). Not enabling it, 'n{=`e(}cI  
# however, may confuse older FTP clients. x15&U\U  
#async_abor_enable=YES c&#Q`m  
# @ #J2t#  
# By default the server will pretend to allow ASCII mode but in fact ignore M+-odLltw  
# the request. Turn on the below options to have the server actually do ASCII u<"-S63+  
# mangling on files when in ASCII mode. G{pF! q  
# Beware that on some FTP servers, ASCII support allows a denial of service S41S+#7t*  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd U0|wC,7"  
# predicted this attack and has always been safe, reporting the size of the r"L:Mu  
# raw file. BDL[C<d(  
# ASCII mangling is a horrible feature of the protocol. t`6~ ud>  
ascii_upload_enable=YES ).Z U0fV  
ascii_download_enable=YES 6X2w)cO  
# /.mx\_$   
# You may fully customise the login banner string: j0cB#M44  
#ftpd_banner=Welcome to blah FTP service. A;xH{vo{  
# <@>icDFEHn  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently Nc EPPl 0I  
# useful for combatting certain DoS attacks. .$&vSOgd(  
#deny_email_enable=YES \J~@r1  
# (default follows) AGlFbc(L  
#banned_email_file=/etc/vsftpd/banned_emails M&(0n?R"R  
# @ uL4'@Ej  
# You may specify an explicit list of local users to chroot() to their home Ta8lc %0w3  
# directory. If chroot_local_user is YES, then this list becomes a list of T~lHm  
# users to NOT chroot(). sEb*GF*.V  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that Y>i Qp/k:  
# the user does not have write access to the top level directory within the [ { F;4> g  
# chroot) gfXit$s  
#chroot_local_user=YES i1qmFvksl  
#chroot_list_enable=YES MR":a T  
# (default follows) 1VXn`O?LW  
#chroot_list_file=/etc/vsftpd/chroot_list GKXd"8z]  
# x50ZwV&j  
# You may activate the "-R" option to the builtin ls. This is disabled by  N,ihQB5  
# default to avoid remote users being able to cause excessive I/O on large ,Igd<A=  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume *kGk.a=  
# the presence of the "-R" option, so there is a strong case for enabling it. t] G hONN  
#ls_recurse_enable=YES O3L:v{Kn  
# $.Qq:(O:6  
# When "listen" directive is enabled, vsftpd runs in standalone mode and Qv;^nj{\qV  
# listens on IPv4 sockets. This directive cannot be used in conjunction $=!_ !tr  
# with the listen_ipv6 directive. ibuoq X`  
listen=YES 35#"]l"  
# $0 ~_)$i :  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 yMe;  
# sockets, you must run two copies of vsftpd with two configuration files. 0e~4(2xK  
# Make sure, that one of the listen options is commented !! 3AC/;WB9  
#listen_ipv6=YES N9AM% H$7  
!X{>?.@~  
pam_service_name=vsftpd =(as{,j  
userlist_enable=YES ^s3SzB@  
tcp_wrappers=YES "xMnD(p  
dj:6c@n  
convert_charset_enable=1 -* piC(  
local_charset=UTF8 oAq<ag\qV  
remote_charset=WIN1251 K2oyHw<mk  
double_377=0 6tT*b@/_o  
ty)~]!tA  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules l 1Ns~  
<.c#l':  
anti_bruteforce=1  5wy3C  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. s% (|z  
:"~n` Q2[  
http_enable=no \m3ca-Y  
ftp_enable=yes fpPHw)dTd  
http_browse=no P4dhP-t  
i|OG#PsY-  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html [<A|\d'x  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html 20k@!BNq  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html #TKByOcD2!  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html _(J/$D  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html )2y# cM*  
IO]%AL(.;  
one_process_model=no
级别: 新人
发帖
1
云币
1
只看该作者 6楼 发表于: 09-08
Reftp客户端连接不上ftp服务器?
我也遇到同样的问题,FTP就是连接不上ECS
级别: 新人
发帖
6
云币
18
只看该作者 7楼 发表于: 09-10
Reftp客户端连接不上ftp服务器?
阿里云为了安全,限制了的
级别: 程序猿
发帖
350
云币
547
只看该作者 8楼 发表于: 09-11
需要在安全组放行端口21,如果是被动模式 还需要放行39000-40000(要看服务端的设置)。
x\;`x$3t  
a5z.c_7r  
 
[ 此帖被服务器云在2018-09-19 08:45重新编辑 ]
级别: 小白
发帖
18
云币
18
只看该作者 9楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 bpAv1udX-W  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个