Ask Your Question
0

Permission Error With Git Push

asked 2015-08-23 22:17:21 -0600

richdev135 gravatar image

updated 2015-08-24 05:23:54 -0600

Hi, All,

I'm following the steps in this link to the T: https://developers.openshift.com/en/node-js-getting-started.html (https://developers.openshift.com/en/n...) I create the app, it works fine. I can see my app. The directory was cloned, also.

Then I follow the instructions for git (git add, etc.) Please see my cmd window output.

C:\dev\projects\demo10>git add .
warning: LF will be replaced by CRLF in .openshift/README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/action_hooks/README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/cron/README.cron.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/cron/weekly/README.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/cron/weekly/chrono.dat.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/cron/weekly/chronograph.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/cron/weekly/jobs.allow.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/cron/weekly/jobs.deny.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .openshift/markers/README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in deplist.txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in package.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in server.js.
The file will have its original line endings in your working directory.

C:\dev\projects\demo10>git commit -m "inital test"
[master warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
3c2e91e] inital test
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
 1 file changed, 1 insertion(+), 1 deletion(-)

C:\dev\projects\demo10>git push
Warning: Permanently added 'demo10-reall.rhcloud.com,52.21.122.154' (RSA) to the
 list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.

Please make sure you have the correct access ...
(more)
edit retag flag offensive close merge delete

Comments

In order to answer, we'll probably need more info about your git repository configuration, for example, what is the exact command line you use to get / create it, etc...

vincent-legoll gravatar imagevincent-legoll ( 2015-08-24 01:44:13 -0600 )edit

@vincent-legoll - thanks! pls see edits.

richdev135 gravatar imagerichdev135 ( 2015-08-24 04:55:15 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-08-24 10:54:12 -0600

smaffulli gravatar image

updated 2015-08-24 10:55:01 -0600

Using git push and github will only give you headaches. I suggest you to carefully read the OpenStack git+gerrit documentation and experiment with the Sandbox.

edit flag offensive delete link more

Comments

@smaffulli - yes, it's already evident. :-) I moved github out of the way and I'm only using git now. Thanks!

richdev135 gravatar imagerichdev135 ( 2015-08-24 11:25:13 -0600 )edit
0

answered 2015-08-24 05:27:39 -0600

richdev135 gravatar image

I found the problem - kind of a face-slap. :-(

I also have github installed and github is before git in my path, so of course it didn't have the right keys or anything.

Thanks! Problem solved. I can push now. :-)

edit flag offensive delete link more
0

answered 2015-08-24 03:53:24 -0600

kumar lakshman kumar gravatar image

Hi,

  1. check you added the public key of the machine from where you are trying to do git push
  2. check you have configured user name using git config "git config --global user.name username"
edit flag offensive delete link more

Comments

Thanks! How do I do this with the keys? (Sorry, I'm new to git and openstack). I tried step #2, but it didn't help.

richdev135 gravatar imagerichdev135 ( 2015-08-24 04:40:58 -0600 )edit

https://wiki.openstack.org/wiki/Docum... This have steps for generating and adding the SSH key to your gerrit

kumar lakshman kumar gravatar imagekumar lakshman kumar ( 2015-08-24 22:05:06 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-23 22:17:21 -0600

Seen: 323 times

Last updated: Aug 24 '15