So you remote host URL for your source repository course, this works for both Mercurial and Git repositories on any actual remote host. Whereas the “standard” SSH URL would look like simply replace the actual host (in the above example, it’s ) with the Saved Session name (aka “host alias”) that you entered in PuTTY (in the example from the animated gif on the right, I used “bitbucket-craig”). The key to making this now work is in the Remote URL that you’ll use for your repositories. Once PuTTY is configured in this way, you will continue to load Pageant and load in each of the keys that you’ll want “cached”, just as you did before. You can have multiple “sessions” using the same Host Name, just give each of them a different “Saved Session” name. You can repeat the above steps for as many different keys you wish to add. Type a “host alias” name in the “Saved Sessions” box and click Save.Navigate back to the “Session” node in the treeview.Specify the correct private key file in the “Private Key File for Authentication” section (this is the same key that you’d load into Pageant).Navigate to the Connection > SSH > Auth node in the treeview.Type in the relevant “real” host name in the Host Name field (i.e.Here’s the steps to create a “session” within PuTTY (which Plink and Pageant will honor it you’re using the correct “host” alias – see later): The way to ensure the correct key is sent is by creating multiple “sessions” within PuTTY itself. If the account you’re trying to connect to uses the other SSH Key, Pageant will send the first (incorrect) key and your connection will fail. Until now, I’ve only ever needed one SSH Key per provider (or “host”) however, I recently started a new job whereby I needed to connect to two different BitBucket accounts, using two different SSH Keys.Īs the two SSH Keys are connecting to the same host, it’s not possible to simply load both of the keys into Pageant and go from there as only the first key loaded will be sent to a given host. I’ve always used PuTTY and the related tools of Plink and Pageant in order to connect to my various online providers (mainly BitBucket and Github). I’ve been using SSH to access my various source code repositories for quite some time now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |