add more details
authorAJ ONeal <aj@therootcompany.com>
Thu, 25 Jun 2020 05:43:50 +0000 (05:43 +0000)
committerAJ ONeal <aj@therootcompany.com>
Thu, 25 Jun 2020 05:43:50 +0000 (05:43 +0000)
ssh-pubkey/README.md

index fe0cb789bc5e2f0129460e94290edbe7182c5dbe..a5197f190c4884e315484f632afba8c8fd0a6ea2 100644 (file)
@@ -20,19 +20,29 @@ ssh-pubkey
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTOhRnzDJNBNBXVCgkxkEaDM4IAp81MtE8fuqeQuFvq5gYLWoZND39N++bUvjMRCveWzZlQNxcLjXHlZA3mGj1b9aMImrvyoq8FJepe+RLEuptJe3md4EtTXo8VJuMXV0lJCcd9ct+eqJ0jH0ww4FDJXWMaFbiVwJBO0IaYevlwcf0QwH12FCARZUSwXfsIeCZNGxOPamIUCXumpQiAjTLGHFIDyWwLDCNPi8GyB3VmqsTNEvO/H8yY4VI7l9hpztE5W6LmGUfTMZrnsELryP5oRlo8W5oVFFS85Lb8bVfn43deGdlLGkwmcJuXzZfostSTHI5Mj7MWezPZyoSqFLl johndoe@MacBook-Air
 ```
 
-Create an SSH keypair if you don't have one:
+The standard location for your SSH Public Key:
 
 ```bash
-[ -f "$HOME/.ssh/id_rsa" ] || ssh-keygen -b 2048 -t rsa -f "$HOME/.ssh/id_rsa" -q -N ""
+~/.ssh/id_rsa.pub
 ```
 
-Copy your public key to `~/Downloads`:
+How to create an SSH Keypair if it doesn't already exist:
 
 ```bash
-rsync -av "$HOME/.ssh/id_rsa.pub" "$HOME/Downloads/id_rsa.$(whoami).pub"
+if [ -f "$HOME/.ssh/id_rsa" ];then
+    ssh-keygen -b 2048 -t rsa -f "$HOME/.ssh/id_rsa" -q -N ""
+fi
 ```
 
-Print your public key to the Terminal:
+How to copy your SSH Public Key to from its hidden folder to your `Downloads`
+folder:
+
+```bash
+rsync -av "$HOME/.ssh/id_rsa.pub" \
+    "$HOME/Downloads/id_rsa.$(whoami).pub"
+```
+
+How to print your public key to the Terminal:
 
 ```bash
 cat "$HOME/Downloads/id_rsa.pub"