If you're the administrator, you need to dig in to find out how the git accounts are set up. There is usually an out-of-band mechanism to set up credentials, for example a web interface. This is done by having a ~/.ssh/authorized_keys that isn't writable by the user. In particular, git access should not be enough to change the credentials and restrictions on the account. ![]() If an account is dedicated to git usage, it makes sense for the administrator to make it a restricted account, only allowed to run git commands. lastly changed the rw permission to 600 via chmod 600 ~/.ssh/authorized keysand successfully copied the key over changed ownership of the authorized_keys file via chown git /home/git/.ssh/authorized keysto git ssh/authorized_keys: Permission deniedĮdit: I solved the problem the following way: Prompted now it is to install the new password: usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed - if you are usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), toįilter out any that are already installed $ ssh-copy-id -i INFO: Source of key(s) to be installed: I stumbled over the possibility to let ssh do the copying work with ssh-copy-id, however it does not seem to work out for me. ![]() I'm trying to set up a git repo for a project and therefore I want to make use of ssh keys in order to not re-enter my password every time.
0 Comments
Leave a Reply. |