I'd like to add my SSH key to authorized keys on a git server (a company server), to not have to insert my password every time I push. However for some reason I cannot make that working.
What I tried:
ssh-copy-id user@server
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
user@server's password:
fatal: unrecognized command '
umask 077 ;
mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ;
if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'
When I try to ssh to the git server, I get the following response:
fatal: Interactive git shell is not enabled.
hint: ~/git-shell-commands should exist and have read and execute access.
Apparently the user account is using git-shell
and it seems that it does not understand the usual shell commands.
Is it still possible to add the public SSH key to the git server user account somehow? Is there perhaps some git command which would allow me to put my public SSH key to the list?
The only access I have to the git server is via the command line and there is the GitWeb interface running (but in there I do not see any option to install the SSH key either).