Sergey Lotvin
Sergey Lotvin

Reputation: 179

Incorrect credentials for repository at ssh

I'm totally confused with openshift+netbeans. This is my openshift app and repository address

When I try to "Clone repository" in order to develop locally I meet "Incorrect credentials for repository at ssh..." I also noticed that it is not possible to put the URL provided by openshift to "Repository URL" field in Netbeans "Clone repository" tool. Clone repository screenshot

Upvotes: 0

Views: 5079

Answers (3)

Shafiq
Shafiq

Reputation: 1

From my experience I can tell that its just an user information miss match issue. I have two repository at bitbucket.org. I was trying to clone with wrong username/password from netbeans where Netbeans checks authentication. Suddenly i notice that and correct the username/password and BANG it works... no error!!!.

Upvotes: 0

Sergey Lotvin
Sergey Lotvin

Reputation: 179

OK, it works! So the solution is:

  1. Repository URL like: ssh://myapp-mydomen.rhcloud.com/~/git/caswp.git/
  2. User name is like: 123e31f89f5cf29a111110e (you can find it on OPENSHIFT ONLINE on app page)
  3. I used "private key". The file name is - id_rsa Normally you can find it in folder - C:\Users\UserName.ssh\

Upvotes: 1

Lazy Badger
Lazy Badger

Reputation: 97395

I meet "Incorrect credentials for repository at ssh..."

Yes, as expected, because you use (in Netbeans) strange and unknown username.

Format of ssh-URL is well-known and predefined. For SSH-served Git-repos it's

ssh://[USERNAME@]HOSTNAME:[PORT]/PATH/TO/REPO.git

optional parameters are []-ed

If Netbeans doesn't accept username in URL, you must use same name, as suggested in app's configuration (long HEX-string), for SSH, not username [email protected] (this is login for OpenShift, not for SSH).

And you can start from getting functional SSH-connection (SSH-client with interactive authentication) before configuring VCS settings in Netbeans

Upvotes: 1

Related Questions