samhstn / my-config

16 stars 0 forks source link

Use ssh authentication over https when interacting with git remotes #60

Closed samhstn closed 5 years ago

samhstn commented 5 years ago

This is important to identify trusted computers and using ssh seems to make it easier to manage different hosts.

The setup for this should be added to the README - following this article (here: https://medium.com/@fredrikanderzon/setting-up-ssh-keys-for-multiple-bitbucket-github-accounts-a5244c28c0ac) would be good.

Also would be good to add a bash function to sams-config.plugin.zsh, something like:

# After following the configuration setup from here:
# https://medium.com/@fredrikanderzon/setting-up-ssh-keys-for-multiple-bitbucket-github-accounts-a5244c28c0ac
function keygen() {
  cd ~/.ssh
  ssh-keygen -t rsa -C "$1" -f "$1"
  ssh-add "~/.ssh/$1"
}

(and remove the glcone function)