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

Exception in AppMerge flows' progression - Unable to resolve deadlock in factory claims [WebLogic 12.1.1]

While deploying my EAR which included a WAR, I was getting the following errors. While searching on the net for possible solutions to the issue, came across a post which indicated that the following setting for the domain was the cause for the same. The setting needs to be deselected. I tried the below url for steps to disable the setting for the domain that I had already created. http://stackoverflow.com/questions/12219782/how-do-you-turn-off-sip-support-in-weblogic-server-12c But that did not help. I then created a new domain and ensured that the setting was unchecked. This resolved the issue.

Cordova

As part of the installation process, for NetBeans, git is installed. git needs to have the proxy settings to be configured properly before it is functional. Use below command to setup the proxy git config --global http.proxy http://<ip>:<port> When integrating with ionic using the below command to download ionic npm install -g ionic To start an ionic app, use command ionic start <AppFolder> If you are behind a proxy you need to set the PROXY environment variable as below set PROXY=http://<ip>:<port> Below is a good tutorial for building a cordova-ionic app https://www.youtube.com/watch?v=sCnGSOaaZFo Tutorial for ionic apps using jax-rs http://ccoenraets.github.io/ionic-tutorial/create-angular-service.html Tutorial for Angular JS https://docs.angularjs.org/tutorial/step_11 http://www.toptal.com/angular-js/a-step-by-step-guide-to-your-first-angularjs-app