Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 1.82 KB

File metadata and controls

81 lines (59 loc) · 1.82 KB

ssh config

Using ed25519

  1. generate key using ed25519
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "perez.xochicale@gmail.com"
  1. Adding your SSH key to the ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
  1. Adding a new SSH key to your GitHub account
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_ed25519.pub

New SSH and GPG keys https://github.com/settings/keys

  1. Testing your SSH connection
ssh -T git@github.com
Hi mxochicale! You've successfully authenticated, but GitHub does not provide shell access.

Using RSA 4096

  1. generate key using RSA
ssh-keygen -m PEM -t rsa -b 4096 -C "perez.xochicale@gmail.com"
  1. Adding your SSH key to the ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
  1. Adding a new SSH key to your GitHub account
sudo apt-get install xclip
xclip -selection clipboard < ~/.ssh/id_rsa.pub

New SSH and GPG keys https://github.com/settings/keys

  1. Testing your SSH connection
ssh -T git@github.com
Hi mxochicale! You've successfully authenticated, but GitHub does not provide shell access.

adding a DEPLOY KEY

Create a new secret variable called DEPLOY_KEY in https://github.com/REPOSITORY_USER/REPOSITORY_NAME/settings/secrets where the value looks like the below lines and is taken from id_rsa with xclip -selection clipboard < ~/.ssh/id_rsa

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

refererences