Skip to content

Instantly share code, notes, and snippets.

@vejandla
Last active February 24, 2020 20:30
Show Gist options
  • Save vejandla/e3b420adbb125433f4e9ecb371a6dc54 to your computer and use it in GitHub Desktop.
Save vejandla/e3b420adbb125433f4e9ecb371a6dc54 to your computer and use it in GitHub Desktop.
generate ssh key

install heroku cli tools

cd "C:\Program Files\heroku\bin"

heroku login

heroku keys:add --select right ssh key (if there are multiples)

heroku create node-av-weather-application -- from the application folder.(name should be unique)

heroku git:remote -a <app_name>

git remote -- should see heroku and origin as outpit

ls -a -l ~/.ssh

ssh-keygen -t rsa -b 4096 -C "[email protected]" --for generating ssh key pair

eval "\$(ssh-agent -s)" --no quotes in windows.

ssh-add -K ~/.ssh/id_rsa --no K for linux

cat ~/.ssh/id_rsa.pub -- for getting the key content to copy to github

ssh -T [email protected] -- for testing the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment