Hacker News new | ask | show | jobs
by bonhardcomp 2932 days ago
Just append aliases to .bash_profile? E.g. alias connect-amazon-example="ssh -i ~/.ssh/amazon-example-key.pem ubuntu@123.123.123.123" Then just 'connect-amazon-example' at the terminal?
1 comments

Is that best practice?

I've never really understood how you should keep SSH keys. I kept them all in a folder and set zsh to iterate through them all and run ssh-add on startup. Until I realised it can't cope after adding a certain amount, now I'm back to manually doing it.