Update VPS-SSH-KEY-SETUP.md
added #Make SSH Agent Persistent
This commit is contained in:
@@ -57,6 +57,7 @@ Should respond with authentication success message.
|
|||||||
Add to ~/.bashrc to avoid running the agent setup every time:
|
Add to ~/.bashrc to avoid running the agent setup every time:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
#Make SSH Agent Persistent
|
||||||
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
||||||
eval "$(ssh-agent -s)" >> ~/.ssh/agent.env
|
eval "$(ssh-agent -s)" >> ~/.ssh/agent.env
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user