From charlesreid1

(Created page with "Procedure for adding SSH keys to github: <pre> #!/bin/sh ssh-keygen -t rsa -b 4096 -C "charlesreid1@gmail.com" eval "$(ssh-agent -s)" ssh-add -k ~/.ssh/id_rsa echo "" echo...")
 
No edit summary
 
Line 1: Line 1:
Procedure for adding SSH keys to github:
Script for creating a public key, and printing it out, with the intention of adding the SSH key to [[Github]] or [[Gitea]]:


<pre>
<pre>
Line 18: Line 18:
echo ""
echo ""
</pre>
</pre>
[[Category:SSH]]
[[Category:Github]]
[[Category:Gitea]]
[[Category:Privacy]]
[[Category:Linux]]
[[Category:Security]]

Latest revision as of 04:22, 26 March 2017

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 ""