feat: add ssh-agent

This commit is contained in:
dancingCycle 2023-03-15 10:12:25 +01:00
parent 60eb39030e
commit 31ababa276
1 changed files with 31 additions and 0 deletions

31
doc/ssh-agent.md Normal file
View File

@ -0,0 +1,31 @@
# Enable ssh-agent
* check if ssh-agent is running
```
env | grep -i ssh
```
* start the ssh-agent in the background
```
eval "$(ssh-agent -s)"
```
* verify if ssh-agent is running now
```
env | grep -i ssh
```
* list keys managed by the agent
```
ssh-add -l
```
* add your ssh key
```
ssh-add ~/.ssh/<e.g. id_ed25519 file>
```
* verify keys managed by the agent
```
ssh-add -l
```