About 803,000 results
Open links in new tab
  1. authentication - How to configure command line git to use ssh key ...

    May 8, 2014 · To create an SSH key, just open the application, click +, then SSH Key, fill out the form, enter the password for the key twice and finally insert the generated public key information into GitHub. After that, the git command will use this SSH key for SSH connections.

  2. How to specify the private SSH-key to use when executing shell command

    You can use GIT_SSH_COMMAND to specify the command you want git to use. In my case (different private key), I had to do this: export GIT_SSH_COMMAND="ssh -i ~/.ssh/my_alternative_private_key" and then continue to use git as normal in the script. –

  3. Using a Specific SSH Private Key When Using Git Command

    Mar 25, 2025 · In this tutorial, we’ll learn how to use a specific private SSH key when running Git commands that establish an SSH tunnel with the remote host. 2. Scenario. Let’s say we have two different GitHub accounts, one for work and another for personal usage.

  4. Git SSH Keys: A Complete Tutorial - Atlassian

    SSH keys are created using a key generation tool. The SSH command line tool suite includes a keygen tool. Most git hosting providers offer guides on how to create an SSH Key. Both OsX and Linux operating systems have comprehensive modern terminal applications that ship with the SSH suite installed.

  5. Generating Your SSH Public Key - Git

    Many Git servers authenticate using SSH public keys. In order to provide a public key, each user in your system must generate one if they don’t already have one. This process is similar across all operating systems. First, you should check to make sure you don’t already have a key.

  6. Generating a new SSH key and adding it to the ssh-agent

    After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent. You can access and write data in repositories on GitHub using SSH (Secure Shell Protocol). When you connect via SSH, you authenticate using a private key file on your local machine. For more information, see About SSH.

  7. How to Get and Configure Your Git and GitHub SSH Keys

    Jan 3, 2020 · Well no more. Here's a quick guide to generate and configure an SSH key with GitHub so you never have to authenticate the old fashioned way again. Check for an existing SSH key. First, check if you've already generated SSH keys for your machine. Open a terminal and enter the following command: ls -al ~/.ssh

  8. How to Use Specific SSH Private Key for Git - PUPUWEB

    Oct 25, 2023 · The article explains how to use SSH keys for Git authentication and how to tell Git which private key to use for each remote repository. The article shows three methods to do this: using SSH config files, using environment variables, and using command-line options.

  9. How to Set Up an SSH Key for Git? - Life in Coding

    Step-by-Step Guide to Setting Up an SSH Key for Git Step 1: Check for Existing SSH Keys. Before creating a new SSH key, check if you already have one. Open your terminal or Git Bash. Run the following command to list existing SSH keys: ls -al ~/.ssh. If you see files like id_rsa and id_rsa.pub, you already have an SSH key.

  10. Mastering Git SSH: Quick Commands for Seamless Access

    Here’s how to set up an SSH key and add it to your Git configuration: cat ~/.ssh/id_rsa.pub. What is SSH? SSH, or Secure Shell, is a protocol used to securely access and manage devices over an unsecured network.

  11. Some results have been removed
Refresh