Shared publicly  - 
 
How to use a .netrc file for automatic logins to http/https/ftp/etc.

1) Create a .netrc file in your home directory
2) Add machine definitions like:

----------------
machine ftp.abc.org login myusername password mypass

machine github.com login myusername password mypass
----------------

3) chmod 600 .netrc to lock it down
4) Now try using curl with the -n/--netrc option, for example:

curl -n https://github.com/mystuff/helloworld > helloworld.html
That will be able to pull from a private repository on github using the credentials from the .netrc file.
3
Linux+'s profile photo
Linux+
 
If it still asks, one fix is to run dos2unix on the file in case it's the wrong format (this helped me just now).
Add a comment...