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

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

级别: 新人
发帖
17
云币
23
1、在本地己电脑的命令行,输入密码之后就报下面的错误 f!LZT!y  
` V^#Sb  
:-"J)^V  
q`$QroZT"  
C:\Users\Administrator>ftpftp> open www.chunwenxue.site {f^30Fw  
连接到 www.chunwenxue.site。220 vsFTPd 2.3.5+ (ext.1) ready... /mD KQ<  
用户(www.chunwenxue.site:(none)): gzh331 Please specify the password. ejr"(m(Xe  
密码: o=`9JKB~  
wkJB5i^<w  
GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, & Plq [Ml9  
sched)'aborting... 29qQ3M?  
500 OOPS: priv_sock_get_result远程主机关闭连接。 X2@o"xU  
(ZEVbAY?i  
t91CxZQ^s  
l?FNYvL  
#[KwR\b{:+  
A+F-r_]}db  
*(>$4$9n  
8OFrW.>[  
_-!6@^+  
r?X^*o9  
NXmj<azED  
RDqC$Gu  
s lI)"+6  
^@19cU?q  
A.h?#%TLL  
2、在本地自己电脑,用cuteFTP也是连接不上。报错信息如下: F 5JgR-P  
H~~(v52wD  
hT]p8m aRZ  
zp9 ?Ia  
        *** CuteFTP 9.0 - build Nov  9 2012 *** \)#3S $L~  
eoL)gIM%  
STATUS:>      [2015/12/10 14:54:00] Getting listing ""...STATUS:>      [2015/12/10 14:54:00] Resolving host name ftp.chunwenxue.site... cq=R  
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)... (qG$u&  
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. (i?^g &  
        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. % (.PRRI  
        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. '9[_ w$~(  
        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. Grub1=6l  
        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. LPNv4lT[u  
        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. mzw*6e2T  
        12) Verify that your anti-virus software is not at fault (try disabling it).STATUS:>      [2015/12/10 14:54:15] Waiting 30 seconds... $_ i41f[  
n^%u9H  
<|_Ey)1 6  
>mV""?r]  
y5ExEXa  
`^}9= Q'r  
3TtW2h>M  
( BGipX4  
\wCL)t.cX  
KqUFf@W  
Pn#Lymxh_a  
注:gzh/密码,这个是新建的用户。 #n7{ 3)   
;uDFd04w [  
级别: 新人
发帖
17
云币
23
只看该作者 沙发  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
端口21是打开的。 ;gyE5n-{  
{;zPW!G  
v+G:,Tc"  
2$91+N*w9  
------------ -{h[W bf  
netstat -na命令,输出如下: D/WS  
}0( Na  
"J#:PfJ%  
login as: root #<o#kJL  
root@182.92.197.238's password: 7 'S]  
Last login: Thu Dec 10 14:10:08 2015 from 111.113.22.138 /HRaX!|E#  
:dzU]pk%0  
Welcome to aliyun Elastic Compute Service! D6u>[Z[T  
f<wgZM  
5o/rV.I  
[root@iZ25p3ad0ffZ ~]# netstat -na Q\76jD`m\  
Active Internet connections (servers and established) sfa'\6=O  
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                        e b5Pn|5AVj  
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN o__q)"^~-  
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN kR|y0V {K*  
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN V1.F`3h~  
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LIST                                                                                        EN G$ FBx  
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LIST                                                                                        EN ^&iV%vQ[  
………… dK: "  
!U_L7  
[root@iZ25p3ad0ffZ ~]#  
级别: 程序猿
发帖
266
云币
352
只看该作者 板凳  发表于: 2015-12-10
Reftp客户端连接不上ftp服务器?
服务端 安装好ftp了么? |M_UQQAB|  
服务器内登录试试
[ 此帖被龙吟风在2015-12-10 17:56重新编辑 ]
级别: 新人
发帖
17
云币
23
只看该作者 地板  发表于: 2015-12-10
回 2楼龙吟风的帖子
服务器内是可以登录的。 njw|JnDv  
c(%|: P^  
fzA9'i`  
!Uc T RI  
------------------- TPY}C  
4X$Qu6#i  
[root@iZ25p3ad0ffZ ~]# lftp gzh:gzh1208@localhost %IRi1EmN8  
lftp gzh@localhost:~> EP+J N  
级别: 程序猿
发帖
266
云币
352
只看该作者 4楼 发表于: 2015-12-11
回 3楼内向的帖子
那检查ftp配置 与防火墙配置是否允许外网访问 21端口是否放行
级别: 新人
发帖
17
云币
23
只看该作者 5楼 发表于: 2015-12-12
回 4楼龙吟风的帖子
1、端口21,已经是打开的,提问帖子里就已经列出来的。 vR<Y1<j  
vsftpd服务也已经启动。 tbD>A6&VM}  
R'f|1mt  
2、都说要看vsftpd配置文件啥的,请问要配置啥? 1lZl10M:f  
我只是创建一个用户访问ftp服务器而已,还需要配置什么? laN:H mR8  
/gT$d2{  
CrC1&F\dq  
---------------- ,<n >g;  
完整的配置文件如下: W(ITs}O  
{#N](yUm  
$A\fm`  
# Example config file /etc/vsftpd/vsftpd.conf 57IAH$n8o  
# xWlj.Tjt}  
# The default compiled in settings are fairly paranoid. This sample file r# MJ  
# loosens things up a bit, to make the ftp daemon more usable. %cMX]U  
# Please see vsftpd.conf.5 for all compiled in defaults. X[b=25Ct  
# L A-H  
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. ,2T&33m  
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's U<J4\|1?7'  
# capabilities. PPO*&=!]  
# f<WP< !N%  
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). ]b!o(5m  
anonymous_enable=NO xrDHXqH  
# OW1i{  
# Uncomment this to allow local users to log in. 3wK{?  
local_enable=YES .g71?^?(  
# . (G9mZFV  
# Uncomment this to enable any form of FTP write command. P3X;&iT  
write_enable=YES  4b]/2H  
# h^R EBPe  
# Default umask for local users is 077. You may wish to change this to 022, I$!rNfrs  
# if your users expect that (022 is used by most other ftpd's) h`n,:Y^++P  
local_umask=022 U_ n1QU  
# _$%.F| :  
# Uncomment this to allow the anonymous FTP user to upload files. This only 1'DD9d{ qN  
# has an effect if the above global write enable is activated. Also, you will Rd~-.&   
# obviously need to create a directory writable by the FTP user. -N;$L~`iAt  
anon_upload_enable=NO U@21N3_@_  
# pEgQ) 9\  
# Uncomment this if you want the anonymous FTP user to be able to create -t~l!! N(  
# new directories. %+gYZv-  
anon_mkdir_write_enable=NO 3lzjY.]Pgv  
# uFQ;}k;}  
# Activate directory messages - messages given to remote users when they .CGPG,\2  
# go into a certain directory. wSoIU,I  
dirmessage_enable=YES B1)gudP`  
# 4po zTe  
# Activate logging of uploads/downloads. aphfzo  
xferlog_enable=YES K ZoIjK]  
# %(lr.9.]H  
# Make sure PORT transfer connections originate from port 20 (ftp-data). d-/{@   
connect_from_port_20=YES 3z7SK Gy  
# u#(VR]u\7  
# If you want, you can arrange for uploaded anonymous files to be owned by Qj;wk lq  
# a different user. Note! Using "root" for uploaded files is not  `{w.OK  
# recommended! 8R?X$=$]!.  
#chown_uploads=YES NG3!09eY  
#chown_username=whoever vbEAd)*S  
# ipzv]c&  
# You may override where the log file goes if you like. The default is shown '}#=I 9=ss  
# below. pG"pvfEl9f  
xferlog_file=/var/log/vsftpd.log :/YHU3~Y  
# $ 9bIUJ  
# If you want, you can have your log file in standard ftpd xferlog format. `pr$l  
# Note that the default log file location is /var/log/xferlog in this case. zT$-%  
#xferlog_std_format=YES @bs YJ4-V  
# <ZmC8&Uo  
# You may change the default value for timing out an idle session. h r@c7/L  
#idle_session_timeout=600 f</'=k  
# fny|^F]w  
# You may change the default value for timing out a data connection. B=dF\.&Z  
#data_connection_timeout=120 Nr~9] S  
# q!UN<+k\h  
# It is recommended that you define on your system a unique user which the pO]{Y?X:  
# ftp server can use as a totally isolated and unprivileged user. \ a}6NIo  
#nopriv_user=ftpsecure ;B Lw?kf  
# :+?eF^ 5  
# Enable this and the server will recognise asynchronous ABOR requests. Not ~|y$^qy?U  
# recommended for security (the code is non-trivial). Not enabling it, Buxn!s  
# however, may confuse older FTP clients. Y dgDMd-1  
#async_abor_enable=YES T2EQQFs  
# $a / jfpV  
# By default the server will pretend to allow ASCII mode but in fact ignore {?X#E12vf  
# the request. Turn on the below options to have the server actually do ASCII :vsBobiJ  
# mangling on files when in ASCII mode. |[6jf!F  
# Beware that on some FTP servers, ASCII support allows a denial of service lI,lR  
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd p~v rr 5  
# predicted this attack and has always been safe, reporting the size of the sY|by\-c  
# raw file. +-%&,>R  
# ASCII mangling is a horrible feature of the protocol. ~Qg:_ @@\  
ascii_upload_enable=YES JXT%@w>I  
ascii_download_enable=YES Z~X\Z.  
# -_%8Q#"  
# You may fully customise the login banner string: `Zdeq.R]  
#ftpd_banner=Welcome to blah FTP service. p* '%<3ml  
# 6 b/UFO  
# You may specify a file of disallowed anonymous e-mail addresses. Apparently 3y# U|&]{  
# useful for combatting certain DoS attacks. st7\k]J\  
#deny_email_enable=YES W't?aj I|  
# (default follows) UrC>n  
#banned_email_file=/etc/vsftpd/banned_emails s (2/]f$  
# \`kH2`  
# You may specify an explicit list of local users to chroot() to their home Sa8KCWgWh  
# directory. If chroot_local_user is YES, then this list becomes a list of \]:}lVtxS  
# users to NOT chroot(). " Y1]6 Zu  
# (Warning! chroot'ing can be very dan gerous. If using chroot, make sure that . X:  
# the user does not have write access to the top level directory within the tfAO#htq  
# chroot) xr*%:TwCta  
#chroot_local_user=YES t^k^e{,q#  
#chroot_list_enable=YES s^&Oh*SP*  
# (default follows) W{El^')F  
#chroot_list_file=/etc/vsftpd/chroot_list Rfx}[!<{N  
# T A9Kg=_  
# You may activate the "-R" option to the builtin ls. This is disabled by hx.ln6=4  
# default to avoid remote users being able to cause excessive I/O on large -%G}T}"_  
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume ;h"St0   
# the presence of the "-R" option, so there is a strong case for enabling it. @H83Ad  
#ls_recurse_enable=YES ZFxa2J~;  
# #$dEg  
# When "listen" directive is enabled, vsftpd runs in standalone mode and IG(1h+5 R(  
# listens on IPv4 sockets. This directive cannot be used in conjunction :>q*#vlb  
# with the listen_ipv6 directive. _\ &N<  
listen=YES Gi+ZI{)  
# Iq?#kV9)  
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 ZzO^IZKlC  
# sockets, you must run two copies of vsftpd with two configuration files. fxOa(mt  
# Make sure, that one of the listen options is commented !! LkwjEJQf  
#listen_ipv6=YES J1\H^gyW)  
r7zS4;b  
pam_service_name=vsftpd xX:N-  
userlist_enable=YES a W9_[#z5  
tcp_wrappers=YES {/2 _"H3:  
sy(8-zbI  
convert_charset_enable=1 ,7/F?!G!J  
local_charset=UTF8 %+bw2;a6  
remote_charset=WIN1251 }~O`(mnD}K  
double_377=0 g;eoH  
(Do](C  
#pasv_addr_rules=/etc/vsftpd/vsftpd.pasv_rules Pw|J([  
N]dsGvX  
anti_bruteforce=1 [B1h0IR  
anti_bruteforce_banner=Bruteforce detected. Server in safe mode. 0K:3?Ik  
DlF6tcoI  
http_enable=no  K?]c  
ftp_enable=yes }{SpV  
http_browse=no &57s//PrX  
@\?QZX(H  
http_browse_tpl=/etc/vsftpd/vsftpd-browse.html mGC!7^_D`  
http_browse_line_tpl=/etc/vsftpd/vsftpd-browse_line.html ><DXT nt'x  
http_error_403_server_tpl=/etc/vsftpd/vsftpd-403-serv.html :(TOtrK@  
http_error_403_tpl=/etc/vsftpd/vsftpd-403.html "V>p  
http_error_404_tpl=/etc/vsftpd/vsftpd-404.html ;a9`z+ K  
7\<}378/^  
one_process_model=no
级别: 新人
发帖
1
云币
1
只看该作者 6楼 发表于: 09-08
Reftp客户端连接不上ftp服务器?
我也遇到同样的问题,FTP就是连接不上ECS
级别: 新人
发帖
6
云币
18
只看该作者 7楼 发表于: 09-10
Reftp客户端连接不上ftp服务器?
阿里云为了安全,限制了的
级别: 程序猿
发帖
484
云币
730
只看该作者 8楼 发表于: 09-11
需要在安全组放行端口21,如果是被动模式 还需要放行39000-40000(要看服务端的设置)。
|3? 8)z\n  
l?*r5[O>n  
 
[ 此帖被服务器云在2018-11-09 21:11重新编辑 ]
级别: 小白
发帖
20
云币
22
只看该作者 9楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
1.安全组放行21端口 /OGA$eP  
2.还是不行的话 换个FTP软件试试  比如flashfxp之类的
级别: 新人
发帖
6
云币
10
只看该作者 10楼 发表于: 09-12
Reftp客户端连接不上ftp服务器?
如果是私有网络,ftp需要设置下,不能用默认设置
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 72 + 14 = ?
上一个 下一个