Set up to connect with ssh - Dieptranivsr/DroneIVSR GitHub Wiki
# Create new repo with remoting from local machine
# Generating a new SSH key
# Open terminal
# When you're prompted to "Enter a file in which to save the key", you can press Enter to accept the default file location. Please note that if you created SSH keys previously, ssh-keygen may ask you to rewrite another key, in which case we recommend creating a custom-named SSH key. To do so, type the default file location and replace id_ALGORITHM with your custom key name.
dieptt3@DESKTOP-BF5GK0T:~$ ssh-keygen -t ed25519 -C "[email protected]"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/dieptt3/.ssh/id_ed25519):
/home/dieptt3/.ssh/id_ed25519 already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/dieptt3/.ssh/id_ed25519
Your public key has been saved in /home/dieptt3/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:elv16kzzzzzzzzzzzzzzzzcCwkp4r3dU7pu0sWsivCnc [email protected]
The key''s randomart image is:
+--[ED25519 256]--+
| .o.. |
| . .. . |
| o . o |
| . o ... |
| S oo . |
| + +.+o. . |
| + B E..==. |
| * O +X*o. |
| +.*O**+ |
+----[SHA256]-----+
# Adding your SSH key to the ssh-agent
# Start the ssh-agent in the background
dieptt3@DESKTOP-BF5GK0T:$ dieptt3@DESKTOP-BF5GK0T:~$ eval "$(ssh-agent -s)"
Agent pid 4587
dieptt3@DESKTOP-BF5GK0T:~$ ssh-add ~/.ssh/id_ed25519
Identity added: /home/dieptt3/.ssh/id_ed25519 ([email protected])
# Add your SSH private key to the ssh-agent
# Adding a new SSH key to your account
# Copy the SSH public key to your clipboard.
dieptt3@DESKTOP-BF5GK0T:~$ cat ~/.ssh/id_ed25519.pub
# Then select and copy the contents of the id_ed25519.pub file
# displayed in the terminal to your clipboard
ssh-ed25519 AAAAC3NzaC1lxxxxxxxxxxxxxxxxxxxxxxxxxxxx2z42iZBc6KceBfVmKrSkjk5oCh7B [email protected]
# In the upper-right corner of any page, click your profile photo, then click Settings.

# In the "Access" section of the sidebar, click SSH and GPG keys.
# Click New SSH key or Add SSH key.
# In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal laptop, you might call this key "Personal laptop".
# Select the type of key, either authentication or signing. For more information about commit signing, see "About commit signature verification."
# In the "Key" field, paste your public key.
# Click Add SSH key.
# If prompted, confirm access to your account on GitHub. For more information, see "Sudo mode."
