

Check the configuration to see whether restrictions on the use of the key should be added at the end of the file (e.g. Once you've found the file, add the public key to it: an authorized_keys files is just a list of line, each normally containing a public key copied straight from a. Check the SSH server configuration ( /etc/sshd_config or /etc/ssh/sshd_config to see where the authorized_keys files are located ( AuthorizedKeysFile setting). 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. You can also specify a username if you don’t want to use the. pub file into the /.ssh/authorizedkeys file (for this use vim, nano or your favourite text editor) If your SSH directory does not exist, create it and then copy the pub file into the /. To copy your key to a server, run this command from the client: ssh-copy-id hostnameorIP. Login to the server machine Copy the content of the.

The key is the file idrsa.pub previously created with SSH keygen utility. – lastly changed the rw permission to 600 via chmod 600 ~/.ssh/authorized keysand successfully copied the key over To use the key pair for SSH authentication, you’ll need to copy the public key to a server. – 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:
#SSH COPY ID NOT WORKING INSTALL#
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.
#SSH COPY ID NOT WORKING PASSWORD#
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.
