私たちはsymfonyのプロジェクトのために、公開ソースの横にssh経由でアクセス可能な独自のgitlabサーバのプライベートリポジトリを使用します。ubuntu:作者と私用リポジトリのインストール方法
私のローカルのubuntuマシンにこの専用リポジトリだけをクローンしても問題ありません。 私は、エラーメッセージ、次の取得このリポジトリを含んプロジェクトに
$ sudo composer install
使用する場合:私はこれを実行する場合
[RuntimeException]
Failed to execute git clone --mirror 'g[email protected]:myprivaterepo.git' '/home/aliebermann/.composer/cache/vcs/git-gitlab.con.example.com-myprivaterepo.git/'
Cloning into bare repository '/home/myuser/.composer/cache/vcs/git-gitlab.con.example.com-myprivaterepo.git'...
__________________________________________________________________
| |
| This system is for the use of authorized users only. Usage of |
| this system may be monitored and recorded by system personnel. |
| |
| Anyone using this system expressly consents to such monitoring |
| and is advised that if such monitoring reveals possible |
| evidence of criminal activity, system personnel may provide the |
| evidence from such monitoring to law enforcement officials. |
|__________________________________________________________________|
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
私はSSHキーが私の個人の家に位置しているためであると推定し、 sudoとして呼び出されません。 他のLinuxシステムのように "su"を単純に使用することはできないので、私はこれをどのように修正するのか迷っています。
sudoを使わないで作者を実行させることはできません。
次私は/root/.sshするすべての私のSSHキーをコピーしたが、彼らはパスワードで保護されて以来、私は次の問題に実行します。
$ sudo ssh-add -k
[sudo] Password for myuser:
Could not open a connection to your authentication agent.
私はroot権限のないmyuserとして実行しています。これは私の問題を解決しますが、問題は解決しません。 –