Security and Encrpytion - LeandroTheDev/arch_linux GitHub Wiki

Genereta rsa keys

  • ssh-keygen -t rsa -b 4096

Git Deploy Keys

Genereta the keys

  • ssh-keygen -t rsa -b 4096
  • Copy the keys generated in /home/user/.ssh/id_rsa... to a location that you prefer
  • Go to the git website that you are hosting your repository and find for deploy keys
  • Use the id_rsa.pub contents in the website, and allow write access
  • Now go to the repository and open your terminal and type:
git remote -v
git remote set-url origin WEBSITEADDRESS:USERNAME/REPOSITORYNAME.git

EXAMPLE:

git remote -v
git remote set-url origin [email protected]:LeandroTheDev/arch_linux.git

Custom location for deploy keys

  • move the keys generated to your desired location
eval $(ssh-agent -s)
ssh-add /path/to/desired/location/id_rsa
  • This needs to be called every system reset, so add it to .bashrc or whatever system you use

Local 2Factor

  • sudo pacman -S keepassxc
  • keepassxc

  • image

  • image

  • Press the left button in the new entry

  • image

  • image

  • Now you can get the code
  • image