Sample Header Ad - 728x90

Specify anonymous ftp password in ftp command

2 votes
1 answer
5501 views
I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the syntax as shown here of basically ftp username:password@hostname; however this does not work for me when the password itself, being an email address, has an @ sign.. I also tried to provide a netrc file as a heredoc, as so: ftp hostname -N <<< 'login anonymous password user@email.com' but this still prompts me for a password during the ftp login..
Asked by Daniel Naftalovich (123 rep)
Oct 11, 2015, 10:37 PM
Last activity: Oct 12, 2015, 06:24 AM