![]() |
|||||
TeraGrid Home > User Info > UC/ANL |
|||||
|
UC/ANL SSHv2 Key Creation and Usage Guidelines:This document explains the procedures users must follow when creating, storing, and using SSHv2 keys for accessing UC/ANL TeraGrid resources. Creating SSHv2 KeysSummary:
Explanation: The ability to crack SSHv2 keys depends directly on the type of key, the number of bits in the key, and the strength/quality and secrecy of the passphrase. The above guidelines are intended to minimize the risk of compromise if someone obtained a copy of your keys or was able to intercept your SSH session. SSHv2 passphrasesSummary:
Explanation: Failure to comply with the strong passphrase guidelines may make your passphrase guess-able by people who a resourceful in finding information about you, or crackable using commonly available cracking software. Suggestions for creating a secure passphrase:
Storing SSHv2 key pairsSummary: Protecting your ssh private keys is important:
Public keys don't need to be protected:
Explanation: Security of SSH keys depends on keeping both the private key and the passphrase secret. The best way to keep the private key secure is to store it on known to be secure machines like a personal laptop or workstation. When a machine is compromised the private keys on that machine are available to the hacker. It's very important to keep your private keys on as few machines as possible, to pick the most secure machines possible, and to avoid whenever possible storing them on machines and file-systems available to many users. Using SSHv2 key pairsWhen you use an passphrased SSHv2 key the ssh client will prompt you for your passphrase. This passphrase is used on you local machine to decrypt your private key so it can be used to connect to the remote machine. The private key never leaves the client machine (in encrypted or decrypted form). For the remote machine to accept a connecting it must have your public key. Your SSHv2 public keys should be stored in the ~/.ssh/authorized_keys file. To create this file use the commands:
You can add your public key to the authorized_keys file using an editor. If you ssh many times and you wish to avoid typing in the passphrase every time, you can use an ssh-agent. For more information read the ssh-agent man page. An ssh-agent allows your client machine to keep a decrypted form of your ssh private key in memory for use when ssh'ing to multiple machines. You may use ssh-agent forwarding when connecting thru one machine to another machine. But, because of security issues, you should only enable agent forwarding for connections where you will need it. Additional informationQuestion regarding these guidlines should be e-mailed to help@teragrid.org and should indicate that they are regarding "SSH key guidelines on the UC/ANL cluster". |
|
The TeraGrid project is funded by the National Science Foundation and includes five partners: NCSA, SDSC, Argonne, CACR and PSC. Please email help@teragrid.org with any questions or comments regarding this page. |
||