push to github fails #1

Closed
opened 2021-05-17 16:11:46 +01:00 by apb · 2 comments
Owner
No description provided.
Author
Owner
> git push -u origin master
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/config/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/config/.ssh/id_rsa": bad permissions
git@git.quodatum.duckdns.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Try

root@odroid-n2:/mnt/drive/docker/projects/code-server/config# chmod 400 .ssh/id_rsa
root@odroid-n2:/mnt/drive/docker/projects/code-server/config# ls -l .ssh
total 12
-r-------- 1 odroid odroid 2655 Mar 24 22:00 id_rsa
-rw-r--r-- 1 odroid odroid  572 Mar 24 22:00 id_rsa.pub
-rw-r--r-- 1 odroid odroid  444 Mar 23 21:59 known_hosts
``` > git push -u origin master @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/config/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/config/.ssh/id_rsa": bad permissions git@git.quodatum.duckdns.org: Permission denied (publickey). fatal: Could not read from remote repository. ``` Try ``` root@odroid-n2:/mnt/drive/docker/projects/code-server/config# chmod 400 .ssh/id_rsa root@odroid-n2:/mnt/drive/docker/projects/code-server/config# ls -l .ssh total 12 -r-------- 1 odroid odroid 2655 Mar 24 22:00 id_rsa -rw-r--r-- 1 odroid odroid 572 Mar 24 22:00 id_rsa.pub -rw-r--r-- 1 odroid odroid 444 Mar 23 21:59 known_hosts ```
apb started working 2021-05-17 16:34:38 +01:00
Author
Owner

fixed by permission change

fixed by permission change
apb closed this issue 2021-05-17 17:36:22 +01:00
apb stopped working 2021-05-17 17:36:22 +01:00
1h 1min 44s
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 1 hour 1 minute
apb
1 hour 1 minute
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: quodatum/code-server#1
No description provided.