feat: add ssh-agent
This commit is contained in:
parent
60eb39030e
commit
31ababa276
|
@ -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
|
||||||
|
```
|
Loading…
Reference in New Issue