From charlesreid1

Script for creating a public key, and printing it out, with the intention of adding the SSH key to Github or Gitea:

#!/bin/sh

ssh-keygen -t rsa -b 4096 -C "charlesreid1@gmail.com"
eval "$(ssh-agent -s)"
ssh-add -k ~/.ssh/id_rsa

echo ""
echo "Copy and paste the contents of your public key ~/.ssh/id_rsa.pub into Github or Gitea:"
echo ""
echo "-------------------8<--------------------------"
echo ""
cat ~/.ssh/id_rsa.pub
echo ""
echo "-------------------8<--------------------------"
echo ""