title: How to load automatically SSH keys with passphrases in SSH agent
body: <p>I have one SSH key per git repository. I have repositories in Bitbucket and on Gitlab. I'm under <strong>Ubuntu 18.04 LTS</strong>. If i use those keys with <code>ssh-add</code> it works but i don't want to <code>ssh-add</code> all my keys and their passphrases each time. I want to do it one time at Ubuntu start at most. Here is the interesting part of my config, that i put in <code>/etc/ssh/ssh_config</code> by despair to be sure that there are no rights problems :</p>
  
  <pre><code>AddKeysToAgent yes
  
  Host git@bitbucket.org:mysthiq/blog.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/Blog/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/guetzlifolder.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/GuetzliFolder/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/portfolio.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/portfolio/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/framework-cms.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/portfolio/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/medoucine.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/medoucine/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@gitlab.wexample.com:oef/contests.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/vinalies1.3/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@gitlab.wexample.com:oef/mobile_v1.3.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/oef/mobile/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/phpbench.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/phpbench/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/prevandcare.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/PrevAndCare/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/sfboilerplate.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/sfBoilerPlate/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/sitesize.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/SiteSize/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/vinalies.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/vinalies/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/vinalies1.3.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/vinalies1.3/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@bitbucket.org:mysthiq/vinciaprep.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/vinciaprep/cle-ssh-linux
      IdentitiesOnly yes
  
  Host git@gitlab.wexample.com:wexample-public/scripts.git
      UseKeychain yes
      HostName bitbucket.org
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/Wexample/cle-ssh-linux
      IdentitiesOnly yes
  </code></pre>
  
  <p>If i can know a mean to test quickly my ssh config without having to reboot ubuntu each time i make a change, i'll  be happy too. (The goal is to use these projects with PHPStorm.)</p>