Skip to content
Snippets Groups Projects
Commit c627815b authored by Jenia Jitsev's avatar Jenia Jitsev
Browse files

JJ: adding helpers to handle ssh keys

parent 2d195cd1
No related branches found
No related tags found
No related merge requests found
# Helper utilities and scripts
Different helpful utilities and scripts
- `init_key.sh` : edit and run this to initialize a ssh key, eg for handling repositories without necessity to type in passwords each time
#!/bin/bash
# handling ssh keys
# execute this with "source ${PATH_TO_SCRIPT}/init_key.sh
# plug here your key name, eg "id_rsa"
SSH_KEY_NAME=""
if [ -z "$SSH_AUTH_SOCK" ]
then
eval `ssh-agent -s`
ssh-add ~/.ssh/${SSH_KEY_NAME}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment