プッシュするたびにパスワードを入力する必要がないように、SSH キーを git サーバー (会社のサーバー) の承認済みキーに追加したいと考えています。しかし、何らかの理由でそれを機能させることができません。
私が試したこと:
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'
git サーバーに ssh しようとすると、次の応答が返されます。
fatal: Interactive git shell is not enabled.
hint: ~/git-shell-commands should exist and have read and execute access.
どうやらユーザーアカウントが使用git-shell
しており、通常のシェルコマンドを理解していないようです。
どういうわけか、公開 SSH キーを git サーバーのユーザー アカウントに追加することはまだ可能ですか? 公開 SSH キーをリストに追加できる git コマンドはありますか?
私がgitサーバーにアクセスできるのはコマンドライン経由だけで、GitWebインターフェイスが実行されています(ただし、SSHキーをインストールするオプションも表示されません)。