Sync bash aliases and ssh keys across devices
Sync bash aliases and ssh keys across devices
How do you guys quickly sync your settings (especially bash aliases and ssh keys) across your machines?
Ideally i want a simple script to run on every new server I work with. Any suggestions?
You're viewing a single thread.
I suggest you don't sync SSH keys. That's just increasing the blast radius of any one of those machines being compromised.
43 0 ReplyExactly this. Don't move private keys between machines. Generate them where you need them, it's not like they cost anything
10 0 ReplyI mean, you want to copy the public keys that represents your machines, right?
3 0 ReplyFair point, but I would equate that with syncing the authorized_keys file rather than thinking about how to sync the keys.
4 0 Reply
Right. Use some kind of centralized authentication like freeipa.
For bash aliases, I just pull down a .bashrc from github gists.
3 1 ReplyIs the url is easy to rember?
2 1 Reply