Skip to content

Instantly share code, notes, and snippets.

View pataruco's full-sized avatar
♥️

Pedro Martin pataruco

♥️
View GitHub Profile
@pataruco
pataruco / deploy-keys.md
Created August 13, 2020 10:05 — forked from holmberd/deploy-keys.md
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C your@email.here
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem