key_add_in_.basrc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| key_add_in_.basrc [2023/06/01 14:46] – 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> | ||
| - | # User specific aliases and functions | ||
| - | # Add a personal key to the keyring... | ||
| - | SSH_ENV=" | ||
| - | function start_agent { | ||
| - | echo " | ||
| - | / | ||
| - | echo succeeded | ||
| - | chmod 600 " | ||
| - | . " | ||
| - | / | ||
| - | } | ||
| - | |||
| - | # Source SSH settings, if applicable | ||
| - | |||
| - | if [ -f " | ||
| - | . " | ||
| - | #ps ${SSH_AGENT_PID} doesn' | ||
| - | ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { | ||
| - | start_agent; | ||
| - | } | ||
| - | else | ||
| - | start_agent; | ||
| - | fi | ||
| - | </ | ||
key_add_in_.basrc.1685630775.txt.gz · Last modified: by steve
