Skip to main content

Generate SSH keys for Windows 7 and BitBucket

  • Start Git Bash
  • Check files in the .ssh folder (ls -al ~/.ssh)
  • Generate Keys (ssh-keygen -t rsa -b 4096 -C "your_email@example.com")
    • When prompted to "Enter file in which to save the key" specify the filename. Do not include the full path. (Unable to resolve open c/Users/userid/.ssh/<filename> failed: No such file or directory)
    • The files get saved in the c/Users/userid directory.
    • Copy them to the c/Users/userid/.ssh/ directory
    • Ensure ssh-agent is enabled : eval $(ssh-agent -s)
    • Add your SSH key to the ssh-agent: ssh-add ~/.ssh/<filename>
  • Login to BitBucket and goto Manage Account
  • Click on SSH Keys in the left menu.
  • Copy the SSH key to your clipboard: clip < ~/.ssh/<filename>.pub (Git Bash)
  • In BitBucket->SSH Keys, click on Add Key
  • Specify a label and paste the copied key contents in the textbox for key
  • Test Connection (ssh -T git@github.com)
http://stackoverflow.com/questions/7144811/git-ssh-error-connect-to-host-bad-file-number

Comments

Popular posts from this blog

Find Bugs Plugin

Findbugs provides for a quick method of doing static code analysis. It can operate in a stand alone mode and integrates well with eclipse as well. More information on this can be found at http://findbugs.sourceforge.net/ The installation comes with a number of built-in detectors. Additional detectors can be found at http://fb-contrib.sourceforge.net/ While these detectors are useful, the real power of FB can be unlocked by writing a custom detector for you code. Below is a step by step tutorial that you can refer to for writing a custom detector for your code. https://code.google.com/p/findbugs/wiki/DetectorPluginTutorial http://www.ibm.com/developerworks/library/j-findbug2/ To write your own detectors you would need to know the byte code being generated for your classes and then based on those patterns write a detector which will serve your purpose. One good plug-in to view the byte code for your classes is the Dr. Garbage Byte Code Visualizer. It is available as a eclipse...