Commit Redux

A software development blog in commit-sized retrospectives

Configuring Git to use the right SSH key

Thursday May 08 2025 • 05:33 AM

Every time I attempted deploying with git push dokku main I was prompted for Dokku’s password on my VPS, meaning Git was using the wrong SSH key.

I created a ~/.ssh/config file to fix that.


Host dokku-server
  HostName IP_ADDRESS
  User dokku
  IdentityFile ~/.ssh/id_hetzner