16

Ubuntu 12.04 を使用していますが、マシンを再起動するたびに、ssh-add によって保存されたキー ID が失われます。

~$ ssh-add -l
The agent has no identities.

以下の投稿のように、.ssh/config ファイルに「IdentityFile」を既に追加しましたが、機能していません。

Ubuntu で ssh-add を使用して秘密鍵を永続的に追加する

私の .ssh/config ファイルは次のようになります。

Host github-user-1
    HostName github.com
    IdentityFile ~/.ssh/id_rsa.git.user-1
    User git
    IdentitiesOnly yes

Host github-user-2
    HostName github.com
    IdentityFile ~/.ssh/id_rsa.git.user-2
    User git
    IdentitiesOnly yes
4

0 に答える 0