zoukankan      html  css  js  c++  java
  • EV: Use SSH key in Bitbucket

    Keywords: Git, Bitbucket, SSH key, TortoiseGit, Tortoise Git
     
    This blog shows the process how to set Tortoise Git to connect Bitbucket using SSH key.
    Steps:
    1. Open StartMenuTortoiseGitPuttygen.
    2. Generate a public/private key pair.
    3. Log on BitBucket, then open page Manage accountSSH keys.
    4. Click [Add key] in the page opened at #3, then "Add SSK key" dialog opens.
    5. In the "Add SSK key" dialog,
       5.1 Copy the public key generated at #2 and paste it into Key field.
       5.2 Enter some words in Label field, 20131222 for example which indicates the date when this key is added.
       5.3 Click [Add key] button to save key and close the dialog.
    6. Back to Puttygen window. Click [Save public key] and [Save private key] to save your keys into files.
    7. Right-click on folder of the git local repository, select TortoiseGitSettings to open the Settings dialog.
    8. On the tortoise git Settings dialog,
       8.1 Select GitRemote from tree at left of the dialog.
       8.2 Select "origin" from Remote list box. Then, the remote data will be loaded into fields at right side.
       8.3 Copy the SSH url from Bitbucket and paste it into the URL field. See screenshot below for SSH url in Bitbucket.
       8.4 In the Putty field, navigate to the private key file you created at #6.
       8.5 Click [OK] to save changes and close the Settings dialog.
     
    9. You are ready to connect Bitbucket server using SSH key at this step. Go ahead to make a pull on your local repository.
  • 相关阅读:
    关于Update语句在不同数据库中的差别
    MSIL指令速查表
    一个对于博客园的建议
    代码风格关于if语句
    关于Page.cs文件中注释的一点补充
    在Java、C#和C++中遍历集合
    BPEL4WS的开源Java实现
    【Linux】linux固定ip
    【Linux】【MySQL】MySQL主从数据库
    wpf 写个简单的控件吧
  • 原文地址:https://www.cnblogs.com/weihongji/p/3493630.html
Copyright © 2011-2022 走看看