setting up ssh keys for github and bitbucket

Generating a new SSH key for Github

01echo "Generating a new SSH key for Github (private)"
02ssh-keygen -t ed25519 -C "<insert email>" -f ~/.ssh/daren_github_private
03eval "$(ssh-agent -s)"
04touch ~/.ssh/config
05printf "# Default hostname\n Host\n Hostname\n AddKeysToAgent yes\n UseKeychain yes\n IdentityFile ~/.ssh/daren_github_private" | tee ~/.ssh/config
06ssh-add -K ~/.ssh/daren_github_private
07echo "run 'pbcopy < ~/.ssh/' and paste that into Github"

If you use a new host or something like `` as `host`. You need to add it to your ssh.

01ssh -T