From 707bfd5754fa9f47fd47918db2db8103d0585f89 Mon Sep 17 00:00:00 2001 From: Lars Windolf Date: Wed, 22 Jan 2025 09:25:23 +0100 Subject: [PATCH] Create netrc.md --- Cheat Sheets/Network/netrc.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Cheat Sheets/Network/netrc.md diff --git a/Cheat Sheets/Network/netrc.md b/Cheat Sheets/Network/netrc.md new file mode 100644 index 000000000..8e7e6c8ee --- /dev/null +++ b/Cheat Sheets/Network/netrc.md @@ -0,0 +1,16 @@ +## Usage + +The `.netrc` [file](https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html) can be used to provide credentials to many CLI tools (e.g. wget, git). + +Syntax: + + machine example.com + login admin + password verysecret + +## Security + +When using `.netrc` consider + +- that your passwords are stored in plain text +- to use proper file permissions (e.g. 0600)