1

Have created application on OpenShift. And now I want connect Netbeans to it. I try clone git by this method

Team --> Clone

In 'Repository URL' field as 'SSH' I enter my SSH URL. Look like ' ssh://538fe7ea50044609120003ef@myapp-masakra.rhcloud.com/~/git/myapp.git/ '

In 'username' field I enter my OpenShift application login;

And I enter my Private SSH Path into appropriate field.

enter image description here

but I get the error:

Incorrect credentials for repository at ssh://538fe7ea50044609120003ef@myapp-masakra.rhcloud.com/~/git/myapp.git/

what is the problem??

user3491167
  • 91
  • 3
  • 13
  • I made clone 'myapp' from OpenShift on my HD too. Maybe I have to work with that repositorium?? – user3491167 Jun 07 '14 at 09:08
  • If you cloned it on your hard drive, what `git remote -v` returns for that clone? – VonC Jun 07 '14 at 09:28
  • resolved: I used 'git init' in ../myapp on HD then just opened this folder as project in NetBeans. After editing project in NetBeans from command line i wrote 'git add .' 'git commit -m' 'git push'. Thank you all – user3491167 Jun 07 '14 at 09:41
  • Ok, I have included your conclusion in the answer for more visibility. – VonC Jun 07 '14 at 09:44

2 Answers2

0

The OP user3491167 mentions in the comments:

I used 'git init' in ../myapp on HD, then just opened this folder as project in NetBeans.
After editing project in NetBeans from command line, I wrote

git add .
git commit -m 
git push

In other words, before connecting a remote repo, you need to have one locally.


As mentioned in this answer, make sure you did add your public key to the OpenShift server (using the rhc command).

rhc sshkey list

Or “OpenShift Management Console” -> “My Account” -> “Public Keys” on the right side (as in this blog post):

https://www.openshift.com/sites/default/files/sshkeys_web.png

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
-1

Use Pageant.exe Putty. Double click to open it. once opened the icon will be displayed on the TaskBar. Click the right mouse button on the icon and select Add Key, select the correct *.ppk and put the passphrase.

Once this is done Netbeans be ready to recognize authentication and could do Push and Clone.

Jeffrey Bosboom
  • 13,313
  • 16
  • 79
  • 92