Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git asking for password every time

# start ssh-agent to remember key
eval $(ssh-agent)

# add and save key permenantly on linux
ssh-add ~/.ssh/id_rsa

# for permeenant save on mac
vim ~/.ssh/config
Host *
   AddKeysToAgent yes
   UseKeychain yes
   IdentityFile ~/.ssh/id_rsa
# write and close (:x) force close (:q!)
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #git #password #time
ADD COMMENT
Topic
Name
3+2 =