Unable to push git repo to Heroku, despite valid SSH keys

后端 未结 4 1743
花落未央
花落未央 2021-02-03 13:44

There are lots of stack articles citing the same error message as I am getting.

I went through the entire heroku setup doc on another computer and everything worked perf

4条回答
  •  孤城傲影
    2021-02-03 14:20

    The permissions on both the .ssh directory and the repository directory are 555

    What counts for ssh connections are the group and other permissions of:

    • /home/user/.ssh
    • /home/user
    • /home

    (replace /home/user by the actual path of your home directory)

    The idea is that group and other attribute permission for .ssh and all its parent directories must not be writable.

    555 is fine for .ssh, although 700 is recommended.
    Check its parent directories: 755 or 555 all the way up to / (no '2', '3' or '6', indicating a writable directory for group or other).

提交回复
热议问题