ftp提示227 Entering Passive Mode和553 Could not create file.

向一个环境内通过FTP推一个包,其中遇到不能在目标文件夹建立文件和文件夹的麻烦,关闭Passive mode就好了,记录一下。

[root@yw ~]# ftp x.x.x.x
Connected to x.x.x.x.
220 Serv-U FTP Server v6.2 for WinSock ready...
500 'AUTH': command not understood.
500 'AUTH': command not understood.
KERBEROS_V4 rejected as an authentication type
Name (172.16.1.96:root): xxd
331 User name okay, need password.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> put  /tmp/gateway20230828090000.csv 
local: /tmp/gateway20230828090000.csv remote: /tmp/gateway20230828090000.csv
227 Entering Passive Mode (10,76,133,126,90,92). --主要就是这个模式不让建立文件
550 Permission denied.
ftp> passive
Passive mode off   .--关闭Passive mode
ftp> put  /tmp/gateway20230828090000.csv 
local: /tmp/gateway20230828090000.csv remote: /tmp/gateway20230828090000.csv
200 PORT Command successful.
550 : Cannot create file  . --要进入/tmp才能上传东西
 --进入/tmp
ftp> lcd /tmp
Local directory now /tmp
ftp> put CentOS-5.2-i386-bin-DVD.iso
local: CentOS-5.2-i386-bin-DVD.iso remote: tmp/gateway20230828090000.csv
200 PORT Command successful.
150 Opening BINARY mode data connection for tmp/gateway20230828090000.csv
226 Transfer complete.
ftp> quit
421 Connection timed out - closing.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值