When using cURL or Wget to access data over HTTP from a web server configured for Earthdata Login authentication.
> cd ~
> touch .netrc
> echo "machine urs.earthdata.nasa.gov login <uid> password <password>" > .netrc
> chmod 0600 .netrc
<uid>
is your Earthdata Login username and <password>
is your Earthdata Login password. > cd ~
> touch .urs_cookies
> curl -b ~/.urs_cookies -c ~/.urs_cookies -L -n http://server/path
> wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies http://server/path