|
|
|||
USE KEYCHAIN TO SIMPLIFY OPENSSH One of the most secure ways to use OpenSSH is with public/private keypairs. The private key of your OpenSSH keypair should have a good passphrase instead of a simple password, but typing out this passphrase every time you connect to a remote system is burdensome and may encourage you to use an easier, shorter, and thus less secure passphrase. A common solution is to use ssh-agent, which stores your private key in an agent so you don't need to constantly reenter your passphrase. Unfortunately, ssh-agent isn't perfect and doesn't work all of the time. In these cases, a tool called Keychain can help. Keychain is a very simple shell script that will make the life of any key-using SSH user much easier. Instead of using a per-login or per-session agent, Keychain uses a single permanent agent. It starts ssh-agent the first time, or hooks into an existing one, which prevents you from having to type your passphrase more than once. Follow
the URL below to get Keychain. Installing it is as simple as running
the script and modifying your ~/.bashrc file. Once you've done this,
you can enjoy Keychain and the convenience it offers. |
||||