Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bujhm/07fe150547dccbf2ad7259e88318e8e7 to your computer and use it in GitHub Desktop.
Save Bujhm/07fe150547dccbf2ad7259e88318e8e7 to your computer and use it in GitHub Desktop.

Revisions

  1. @patsbin patsbin created this gist Mar 3, 2022.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@

    Getting an error after migrating to a new system when adding private keys to ssh-agent
    /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa.key
    * Error: Problem adding; giving up

    Manually adding the key shows a permission problem
    ssh-add ~/.ssh/id_rsa.key
    chmod 700 /home/pwi/.ssh/*.key

    In .bashrc
    /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa1.key
    /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa2.key
    source $HOME/.keychain/$HOSTNAME-sh