如何在我的用户名中使用带有@符号的linux命令行ftp? [英] How to use linux command line ftp with a @ sign in my username?

查看:662
本文介绍了如何在我的用户名中使用带有@符号的linux命令行ftp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



<$>当我的用户名在中间有一个 @ 标志时,如何在Linux命令行上运行此命令p $ p> ftp -u用户:密码@主机/目的地文件夹/ sourcefile.txt

我的用户名是 info@domain.com ,它认为我的主机是 domain.com



注意:这是一个无人值守的上传,所以我不能只输入用户名和密码。 作为替代方案,如果您不想创建配置文件,请使用 curl 而不是进行无人值守上载。 ftp

  curl -u用户:password -T文件ftp:// server / dir /文件


How can I run this on linux command line when my username has an @ sign in the middle?

ftp -u user:password@host/destination_folder/ sourcefile.txt

My username is info@domain.com and it thinks my host is domain.com.

NOTE: This is an unattended upload, so I can't just type in the username and password.

解决方案

As an alternative, if you don't want to create config files, do the unattended upload with curl instead of ftp:

curl -u user:password -T file ftp://server/dir/file

这篇关于如何在我的用户名中使用带有@符号的linux命令行ftp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆