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

Java Agent

Starting with JDK 1.5, the javaagent feature has been around which provides for a hook to get access to the classes as they are loaded and consequently do instrumentation of the class to serve your purpose. This along with Javassist will allow you to achieve some useful tasks like enabling specific debugging etc. Below are some useful links for the same http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/tutorial/tutorial.html http://blog.javabenchmark.org/2013/05/java-instrumentation-tutorial.html https://today.java.net/article/2008/04/22/add-logging-class-load-time-java-instrumentation I used to face issues related to the agent class not been able to find javassist related classes. To tackle this you can add an index file to the agent jar like below. jar -i agent.jar lib\javassist.jar and ensure that during deployment the javassist.jar file is in the lib folder which itselfs exists in the same directory as the agent jar. The  insertBefore and  insertAfter method...

jax-rs jaxb and json

The urls below have a good tutorial for achieving the same. https://docs.oracle.com/javaee/6/tutorial/doc/gkoib.html https://docs.oracle.com/cd/E24329_01/web.1211/e24983/configure.htm#RESTF187 https://docs.oracle.com/cd/E21764_01/web.1111/e13734/rest.htm#WSADV553 http://howtodoinjava.com/restful-web-service/ http://www.theserverlabs.com/blog/2009/01/12/rest-web-services-with-jaxb-jax-rs-and-sun-jersey/ http://blog.bdoughan.com/2010/08/creating-restful-web-service-part-15.html