Generating and Adding SSH keys on Windows

To authenticate with Beanstalk for Git and Mercurial, you will need to generate an SSH key pair. This process only requires a few steps, but you first need to install msysgit (use the full installer) which will install OpenSSH connection tools and Git.

[b]Generating a key pair[/b]

To do this you need to run Git Bash, which can be found in the start menu. Once opened, run the command:
$ ssh-keygen -t rsa

It will ask for location and pass phrase. Accept the default location (usually C:\Documents and Settings\username\.ssh\ or C:\Users\username\.ssh) by pressing enter. After that, make sure to set a strong pass phrase for the key.


Now that the keys are generated, open the file id_rsa.pub with a text editor. The contents of this file is the public key, copy it to your clipboard.

Adding your public key to Beanstalk

Once your key pair is generated, you can add it to Beanstalk. Login to Beanstalk and click on Profile & Settings > Keys. Once there, you will see a button to add your public key. Click the Add Public Key button, and paste the public key into the SSH Key box, click Add Key and your done.
[img]http://dl.iteye.com/upload/attachment/0084/1739/2cf6f04f-e5ce-3b7d-b4ef-b394b9719b66.jpg[/img]

and that in eclipse you can do this:
1、go to: Window->Preferences->General->Network Connections->SSH2
[img]http://dl.iteye.com/upload/attachment/0084/1735/9aa55010-175d-30be-8d81-e29e066511b8.png[/img]
After this you can try to import one of your Git repositories from Beanstalk. Select import project, and then import project from Git.

[img]http://dl.iteye.com/upload/attachment/0084/1743/3c676652-9e64-357e-b0fd-515d8688b2b4.png[/img]

After this you will see a button to clone an existing repository, after clicking the clone button, you will need to fill the information about your Beanstalk repository. Here is an example of one of Beanstalk's repository imports:

[img]http://dl.iteye.com/upload/attachment/0084/1753/6973659d-334a-3a42-b259-596526bbb148.png[/img]
After clicking "Next" button, Eclipse should connect to Beanstalk, and you should be able to select a branch to connect to. After selecting a branch, Eclipse will ask you where to store your git repository and you should be able to finish setting up the import of your git repository.


I hope this can help who want to resolve the ssh... proboles!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值