- non interactive ftp login:
$ ~/.netrc
Now you can simply ftp to said machine and it will auto-login.
machine server_name/ip
login username
password password
$ chmod 600 ~/.netrc
- Copying a file to the ftp server:
- echo put FILE.ext | ftp server_name
or - curl -T FILE.ext ftp://server_name --user username:password
- echo put FILE.ext | ftp server_name
No comments:
Post a Comment