How to use linux command line ftp with a @ sign in

2019-03-09 18:20发布

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.

标签: linux ftp
7条回答
成全新的幸福
2楼-- · 2019-03-09 19:16

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
查看更多
登录 后发表回答