Forked from patsbin/gist:868c48c5e8b3de1ccad7dd19257f7a17
          
        
    
          Created
          December 10, 2023 20:42 
        
      - 
      
- 
        Save Bujhm/07fe150547dccbf2ad7259e88318e8e7 to your computer and use it in GitHub Desktop. 
    Keychain Error: Problem adding; giving up
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment