Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Permission Error With Git Push

Hi, All,

I'm following the steps in this link to the T: https://developers.openshift.com/en/node-js-getting-started.html 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 rights
and the repository exists.

I am using Window 8.1 and rhc cli.

Any ideas?

TIA

Permission Error With Git Push

Hi, All,

I'm following the steps in this link to the T: https://developers.openshift.com/en/node-js-getting-started.html 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 rights
and the repository exists.

I am using Window 8.1 and rhc cli.

Edit: I let thc create my git repository:

C:\dev\projects>rhc app create demo10 nodejs-0.10
DL is deprecated, please use Fiddle
Application Options
-------------------
Domain:     reall
Cartridges: nodejs-0.10
Gear Size:  default
Scaling:    no

Creating application 'demo10' ... done


Waiting for your DNS name to be available ... done

Cloning into 'demo10'...
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 24 (delta 1), reused 24 (delta 1)
Receiving objects: 100% (24/24), 20.45 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.

Your application 'demo10' is now available.

  URL:        http://demo10-reall.rhcloud.com/
  SSH to:     55da8a9c7628e1c5ff00013b@demo10-reall.rhcloud.com
  Git remote: ssh://55da8a9c7628e1c5ff00013b@demo10-reall.rhcloud.com/~/git/demo
10.git/
  Cloned to:  C:/dev/projects/demo10

Run 'rhc show-app demo10' for more details about your app.

Any ideas?

TIA

Permission Error With Git Push

Hi, All,

I'm following the steps in this link to the T: https://developers.openshift.com/en/node-js-getting-started.html 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 rights
and the repository exists.

I am using Window 8.1 and rhc cli.

Edit: I let thc rhc create my git repository:

C:\dev\projects>rhc app create demo10 nodejs-0.10
DL is deprecated, please use Fiddle
Application Options
-------------------
Domain:     reall
Cartridges: nodejs-0.10
Gear Size:  default
Scaling:    no

Creating application 'demo10' ... done


Waiting for your DNS name to be available ... done

Cloning into 'demo10'...
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 24 (delta 1), reused 24 (delta 1)
Receiving objects: 100% (24/24), 20.45 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.

Your application 'demo10' is now available.

  URL:        http://demo10-reall.rhcloud.com/
  SSH to:     55da8a9c7628e1c5ff00013b@demo10-reall.rhcloud.com
  Git remote: ssh://55da8a9c7628e1c5ff00013b@demo10-reall.rhcloud.com/~/git/demo
10.git/
  Cloned to:  C:/dev/projects/demo10

Run 'rhc show-app demo10' for more details about your app.

Any ideas?

TIA