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:
|
||||
|
||||
```bash
|
||||
#Make SSH Agent Persistent
|
||||
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
||||
eval "$(ssh-agent -s)" >> ~/.ssh/agent.env
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user