❓
Dev Info
  • Welcome
  • Python
    • Install
    • Virtual Environments
    • Challenges
    • Flask
      • Docs
      • Examples
      • Tutorials
    • FastAPI
      • Docs
    • Docs
    • FAQ
  • CSS
    • Challenges
  • HTML
    • Challenges
  • JAVASCRIPT
    • Challenges
  • REACT
    • Challenges
  • Redis
    • Install
    • Docs
  • Books
    • Testing
  • GIT
    • SSH
Powered by GitBook
On this page
  • Resources
  • SSH version installed on your system
  • Create an SSH Key
  • Add SSH Key To GitHub or GitLab
  • Test SSH Connection
  • Are you still getting Permission Denied?

Was this helpful?

  1. GIT

SSH

Information about SSH.

PreviousTesting

Last updated 4 years ago

Was this helpful?

SSH can be a little tricky. Below I have the various things I have come across to help me out. Most commands currently are for Mac, once I mess with Windows more I will update.

Resources

  • Traversy Media Video

  • GitLab Docs

  • GitHub Docs

SSH version installed on your system

$ ssh -V

Create an SSH Key

Run the following command and pick all the defaults to the prompts. This tutorial doesn't explain how to use passphrases.

$ ssh-keygen

Be mindful the command above is a super basic way. GitLab mentioned the following options at the end of the ssh-keygen command. See the picture below or visit the

Add SSH Key To GitHub or GitLab

  • GitHub

  • GitLab

Test SSH Connection

$ ssh -T git@github.com
$ ssh -T git@gitlab.com

Are you still getting Permission Denied?

Make sure you are in your root when running this command. Also, be mindful you will replace SSH_FILENAME with your filename.

$ ssh-add ~/.ssh/SSH_FILENAME

The following commands should say Hello or Welcome followed by your username if you set everything up correctly. Learn more at the or .

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
https://docs.gitlab.com/ee/ssh/README.html#add-an-ssh-key-to-your-gitlab-account
GitLab Docs
GitHub Docs
https://youtu.be/hQWRp-FdTpc
https://docs.gitlab.com/ee/ssh/README.html
https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
GitLab Docs