For many years now it is a commonly known good practice to use ssh public key authentication to login to remote servers, and that ssh-agent can store your passphrase so that you don’t have to enter it every time you login with your keys.
However, ssh-agent is not exactly convenient to use:
- You have to start ssh-agent and add your keys in it at some point (ideally the first time you login)
- If there is an existing ssh-agent process running you want to reuse it rather than running yet another one
If you are using a Linux desktop (with a GUI), then the above is probably easy to do, hopefully even hassle-free and automatic with a keychain tool that takes care of starting ssh-agent when you login and storing all your passphrases.
However, if you are not using a Linux desktop then your best option is to concoct some home-brew hack that you add to your ~/.bash_profile to make it automatic every time you log in. Here’s my own concoction that has evolved over the years into something readable, kept up to date on my wiki:
This is the first official release of bashoneliners.com and here’s the list of main features.
Post alternative one-liners that improve on another one-liner posted by someone else
Post questions that can be answered by an appropriate one-liner
Receive email notifications on posts and comments on your one-liners and questions
Follow one-liners on twitter @bashoneliners or on rss
Follow upcoming features on Trello
Follow project news on the mailing list
Request new features on the online poll
Membership with openid authentication only, because you shouldn’t have to remember yet another password!
Members can add basic profile info such as display name, twitter url, homepage url
Simple search and advanced search to query specific fields, with whole word option
Tags, generated automatically from the one-liner itself when posting or saving, and useful as quick search links
Solid support of mobile devices and small screens, thanks to Bootstrap 2.0 from Twitter
Explanation and Limitations fields, with Markdown formatting and preview function.
- Post practical or just pure awesome one-liners to share with the world, with explanations