key_add_in_.basrc
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| key_add_in_.basrc [2023/05/31 19:00] – created steve | key_add_in_.basrc [2023/12/11 14:11] (current) – removed steve | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Key add in .basrc ==== | + | |
| - | This works perfectly in Mint, dunno about others; | + | |
| - | <code bash> | + | |
| - | # Add a personal key to the keyring... | + | |
| - | Key=" | + | |
| - | Added=$(ssh-add -l | grep -o ${Key}) | + | |
| - | if [[ ! ${Key} == ${Added} ]]; then | + | |
| - | ssh-add ~/${Key} | + | |
| - | fi | + | |
| - | </ | + | |
key_add_in_.basrc.1685559650.txt.gz · Last modified: by steve
