Links

Common HowTo

 

 

    Generate key pair ssh-keygen

     

    Generate key pair ssh-keygen

    4.3 Git on the Server - Generating Your SSH Public Key. Generating Your SSH Public Key. That being said, 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. By default, a user’s SSH keys are stored in that user’s. directory. You can easily check to see if you have a key already by going to that directory and listing the contents. You’re looking for a pair of files named something like id_dsa or id_rsa and a matching file with a extension. The file is your public key, and the other file is your private key. If you don’t have these files (or you don’t even have a directory), you can create them by running a program called ssh-keygen. which is provided with the SSH package on Linux/Mac systems and comes with Git for Windows. First it confirms where you want to save the key ( ), and then it asks twice for a passphrase, which you can leave empty if you don’t want to type a password when you use the key. Now, each user that does this has to send their public key to you or whoever is administrating the Git server (assuming you’re using an SSH server setup that requires public keys). All they have to do is copy the contents of the file and email it. The public keys look something like this. For a more in-depth tutorial on creating an SSH key on multiple operating systems, see the GitHub guide on SSH keys at.

    PREVIOUS   NEXT

Copyright © 1999-2016, Apache Software Foundation