Changes between Version 43 and Version 44 of HowTo/LoginToNodes
- Timestamp:
- 08/21/12 16:43:18 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/LoginToNodes
v43 v44 224 224 It will ask you for the passphrase once but it won't ask you every time you try to use the key. If the `ssh-agent` is not running you can take a look at [http://mah.everybody.org/docs/ssh these instructions] for how to automatically run it when you login. 225 225 226 ==== I don't want to keep typing my passphrase ==== 227 It is highly recommended that you keep passphrases in all your ssh keys. You should first consider all the above options of using ssh agents before considering removing the passphrase from your ssh keys. If this does not work for you and you want to remove the passphrase from your private keys then you can use the following steps (assuming that your private key is '''id_rsa'''): 228 {{{ 229 mv id_rsa id_rsa.encrypted 230 openssl rsa -in id_rsa.encrypted -out id_rsa 231 <type your passphrase when prompted> 232 chmod 400 id_rsa 233 }}} 234 226 235 === Simplify the ssh command === 227 236 If you don't want to always specify the '-i' command when you try to login to your hosts, then you can modify your ssh config file to use your key by default. The default location for your ssh configuration file is at `~/.ssh/config`. For more information on the ssh configuration files use `man ssh_config`. If you want to setup your configuration so that it affects only your GENI hosts then you can add these lines to your configuration file for each host : … … 236 245 237 246 Now you can simply run `ssh <your_alias>`, where <your_alias> can be any nickname you choose. 238 239 === I don't want to keep typing my passphrase ===240 It is highly recommended that you keep passphrases in all your ssh keys. There are ways using ssh agents so that you only type the passphrase once. Take a look [#ManagingSSHKeys here] for more information. If nothing like this works for you and you want to remove the passphrase from your private keys then you can use the following steps (assuming that your private key is '''id_rsa'''):241 {{{242 mv id_rsa id_rsa.encrypted243 openssl rsa -in id_rsa.encrypted -out id_rsa244 <type your passphrase when prompted>245 chmod 400 id_rsa246 }}}