Last active
          March 31, 2019 18:42 
        
      - 
      
 - 
        
Save lgw4/d585a0dcbda543811d480dd25de457da to your computer and use it in GitHub Desktop.  
    Add SSH Keys to macOS Keychain
  
        
  
    
      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
    
  
  
    
  | #!/usr/bin/env bash | |
| # Add DSA keys | |
| for dsa in ${HOME}/.ssh/*_dsa; do | |
| /usr/bin/ssh-add -K "${dsa}" | |
| done | |
| # Add RSA keys | |
| for rsa in ${HOME}/.ssh/*_rsa; do | |
| /usr/bin/ssh-add -K "${rsa}" | |
| done | |
| # Add ED25519 keys | |
| for ed25519 in ${HOME}/.ssh/*_ed25519; do | |
| /usr/bin/ssh-add -K "${ed25519}" | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment