-
Notifications
You must be signed in to change notification settings - Fork 0
/
github_ssh_directions
31 lines (18 loc) · 976 Bytes
/
github_ssh_directions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#create and add an ssh key to your ~/.ssh file
ssh-keygen -t ed25519 -C "email@gmail.com"
#After you press enter you'll see: "Enter a file in which to save the key," and just press enter again.
#option passphrase - recommended.
#Add github ssh connection to SSH client in your linux terminal - good for testing private repos and general access.
eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_ed25519
#then copy your ssh key and add into your GitHub profile
cat ~/.ssh/id_ed25519.pub | xclip -selection clipboard
#Check if your connection is established
# ssh -T git@github.com
# git clone git@github.com:dtflare/parsR.git
# conda activate <> (5miniconda name for your env to test tool)
#cd into root directory containing setup.py:
# pip install -e .
#When dealing with your key pairs make sure to set file based permissions so only your user can read them:
chmod 600 ~/.ssh/id_ed25519
#Overwrite unused or old keys instead of deleting with:
shred -u ~/.ssh/id_ed25519