Hi there! This post will be pretty straightforward and will cover Windows, Mac, and Linux, so if you don’t know how to do it already, read on.
It is pretty easy to do this with Git-Extensions; Open Git Gui. Help Show SSH key. Generate Key. Copy To Clipboard. Paste it into your profile SSH Keys in GitHub, Bitbucket, etc. Jun 01, 2016 Build together: GitLab includes Git repository management, code reviews, issue tracking, wikis, and more, plus GitLab CI, an easy-to-use.
Windows
Just follow these 5 steps:
- Go to this address, and download Git for Windows, after the download install it with default settings
- Open Git Bash that you just installed (Start->All Programs->Git->Git Bash)
- Type in the following: ssh-keygen -t rsa (when prompted, enter password, key name can stay the same)
- Open file your_home_directory/.ssh/id_rsa.pub with your favorite text editor, and copy contents to your Git repository’s keys field (GitHub, beanstalk, or any other repository provider), under your account.
- Be sure that you don’t copy any whitespace while copying public key’s content (id_rsa.pub)
Note: your_home_directory is either C:Usersyour_username (on Windows Vista / 7 / 8 / 10), or C:Documents and Settingsyour_username (on Windows XP)
Mac
Follow these 5 steps:
- Start the terminal
- Navigate to your home directory by typing: cd ~/
- Execute the following command: ssh-keygen -t rsa (when prompted, enter password, key name can stay the same)
- Open the file you’ve just created ~/.ssh/id_rsa.pub with your favorite text editor, and copy contents to your Git repository’s keys field (GitHub, beanstalk, or any other repository provider), under your account.
- Be sure that you don’t copy any whitespace while copying public key’s content (id_rsa.pub)
Linux (Ubuntu)
Follow these 5 steps:
- Open console
- cd ~
- ssh-keygen -t rsa (when prompted, enter password, key name can stay the same)
- open file /home/your_username/.ssh/id_rsa.pub with your favorite text editor, and copy contents to your Git repository’s keys field (GitHub, beanstalk, or any other repository provider), under your account.
- Be sure that you don’t copy any whitespace while copying public key’s content (id_rsa.pub)
Additional info
When you create private/public SSH keys on your machine (that’s what you did in the above steps), it’s not enough. You need to give your public key to the repository in order to pair the Git server with your local machine (that’d be steps 4. and 5. above).
Most of the popular repositories will give you web interface access to the application, and here’s how it looks like on Github:
After this step, you’re ready to start using Git.
After this step, you’re ready to start using Git.
Conclusion
I hope this wasn’t too complicated to follow, and also I hope it was helpful to someone!
Cheers!
____________________________________________________________________________________________
Note! This article was revised on Jul 26, 2019. The original article was posted in 2011 by Mladen Lotar.
-->Azure Repos | Azure DevOps Server 2019 | TFS 2018 | TFS 2017 | TFS 2015 Update 3
Choose a method to securely access the code in Azure Repos, Azure DevOps Server 2019, or Team Foundation Server (TFS) Git repositories.Use these credentials with Git at a command prompt. These credentials also work with any Git client that supports HTTPS or SSH authentication.Limit the scope of access and revoke these credentials when they're no longer needed.
Important
Azure DevOps no longer supports Alternate Credentials authentication since the beginning of March 2, 2020. If you're still using Alternate Credentials, then they won't work anymore. You have to switch to a more secure authentication method, to mitigate this breaking change impacting your DevOps workflows. Learn more.
Azure DevOps Server was formerly named Visual Studio Team Foundation Server.
Tip
Create Ssh Key For Git
Using Visual Studio? Team Explorer handles authentication with Azure Repos for you.
Authentication comparison
Authentication Type | When to use | Secure? | Ease of setup | Additional tools |
---|---|---|---|---|
Personal access tokens | You need an easy to configure credential or need configurable access controls | Very secure (when using HTTPS) | Easy | Optional (Git credential managers) |
SSH | You already have SSH keys set up, or are on macOS or Linux | Very secure | Intermediate | Windows users will need the SSH tools included with Git for Windows |
Alternate credentials | You can't use personal access tokens or SSH | Least secure | Easy | See important information about alternate credentials |
Personal access tokens
Git Extensions Generate Ssh Key
Personal access tokens (PATs) give you access to Azure DevOps and Team Foundation Server (TFS), without using your username and password directly.These tokens have an expiration date from when they're created. You can restrict the scope of the data they can access.Use PATs to authenticate if you don't already have SSH keys set up on your system or if you need to restrict the permissions that are granted by the credential.
Use Git Credential Manager to generate tokens
Generate Public Ssh Key Git
Git credential managers is an optional tool that makes it easy to create PATs when you're working with Azure Repos.Sign in to the web portal, generate a token, and then use the token as your password when you're connecting to Azure Repos.
Ssh Generate Key
PATs are generated on demand when you have the credential manager installed.The credential manager creates the token in Azure DevOps and saves it locally for use with the Git command line or other client.
Note
Current versions of Git for Windows include the Git credential manager as an optional feature during installation.
SSH key authentication
Key authentication with SSH works through a public and private key pair that you create on your computer.You associate the public key with your username from the web. Azure DevOps will encrypt the data sent to you with that key when you work with Git.You decrypt the data on your computer with the private key, which is never shared or sent over the network.
https://touryellow685.weebly.com/fable-the-lost-chapters-cd-key-generator.html. SSH is a great option if you've already got it set up on your system—just add a public key to Azure DevOps and clone your repos using SSH.If you don't have SSH set up on your computer, you should use PATs and HTTPS instead - it's secure and easier to set up.
Generate Ssh Key Putty
Learn more about setting up SSH with Azure DevOps
Alternate credentials
Create an alternate user name and password to access your Git repository using alternate credentials.Unlike PATs, this login doesn't expire and can't be scoped to limit access to your Azure DevOps Services data.Use alternate credentials as a last resort when you can't use PATs or SSH keys.