The file .netrc in linux is used to specify passwords. The file is located under the home directory.
The format is as follows:
machine <host name or IP>
login <username>
password <user_password>
Note that if the .netrc file's permissions must be set to 600 (read and write by owner only). This is to ensure the information is hidden to all but the user (and root).
chmod 600 ~/.netrc
See Also
Posted by Cuauhtemoc to Cuauhtemoc's Deck (2022-02-18 16:17)