ssh-keygen -t rsa -b 4096
ssh-copy-id -i ~/.ssh/kcq_stage.pub kcqstage@companion.dreamhost.com
ssh kcqstage@companion.dreamhost.com
Setup for github
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C maja.kraljic@gmail.com
eval "$(ssh-agent -s)"
ssh-add keyname
ssh -T git@github.com
Use ssh
after repository is created
git remote add origin git@github.com:22nds/youtube-playlists.git
// if it was done the old way, you can change it with the instructions below
git remote add origin https://github.com/22nds/youtube-playlists.git
Check remote address
git remote -v
Set a new address
git remote set-url origin git@github.com:22nds/youtube-playlists.git
Start pushing
git push