.netrc

From NovaOrdis Knowledge Base
Revision as of 23:15, 17 May 2023 by Ovidiu (talk | contribs) (Created page with "=External= * https://everything.curl.dev/usingcurl/netrc =Internal= * curl =Overview= Unix systems have for a long time offered a way for users to store their...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Unix systems have for a long time offered a way for users to store their user name and password for remote FTP servers, in the form of the .netrc file. The .netrc file is typically stored in a user's home directory. Curl supports it. Format example:

machine example.com
login some-user
password some-password

To configure curl to use it, pass -n or --netrc on command line.