Update VPS-SSH-KEY-SETUP.md

added #Make SSH Agent Persistent
This commit is contained in:
pdm
2025-11-25 22:54:51 +00:00
parent f328304e34
commit fd5f024a08

View File

@@ -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