Get the latest tech news

Put SSH keys in .git to make repos USB-portable


My repository remotes are set up to use deploy keys exclusively, as I don’t want to inadvertently push changes from the wrong account due to forgetting to change the local machine user’s credentials. I used to do so by keeping several subdirectories inside my .ssh directory for per-account keys and manually pasting them outside whenever I want to push a specific repo, but it’s cumbersome and still quite error-prone.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of SSH

SSH

Photo of portable

portable

Photo of repos USB

repos USB

Related news:

News photo

Confuse some SSH bots and make botters block you

News photo

Native Secure Enclave backed SSH keys on macOS

News photo

SUSE Developer Working To Reimplement SSH Using The Zig Programming Language