Changes between Version 43 and Version 44 of HowTo/LoginToNodes


Ignore:
Timestamp:
08/21/12 16:43:18 (7 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/LoginToNodes

    v43 v44  
    224224    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.
    225225
     226==== I don't want to keep typing my passphrase ====
     227It 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{{{
     229mv id_rsa id_rsa.encrypted
     230openssl rsa -in id_rsa.encrypted -out id_rsa
     231<type your passphrase when prompted>
     232chmod 400 id_rsa
     233}}}
     234
    226235=== Simplify the ssh command ===
    227236If 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 :
     
    236245
    237246Now 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.encrypted
    243 openssl rsa -in id_rsa.encrypted -out id_rsa
    244 <type your passphrase when prompted>
    245 chmod 400 id_rsa
    246 }}}