Changes between Version 29 and Version 30 of HowTo/LoginToNodes


Ignore:
Timestamp:
08/15/12 17:40:31 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/LoginToNodes

    v29 v30  
    146146   * '''your sliver is not ready yet''' : make sure that the status of your liver is ready before you try to login. If you are using PlanetLab nodes then you might have to wait up to 30 minutes before your nodes are configured.
    147147If you have tried everything but you still can't login, email us at [mailto:help@geni.net].
     148
     149=== Simplify the ssh command ===
     150If 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 current hosts then you can add these lines to your configuration file for each host :
     151{{{
     152Host <your_alias>
     153     Port <port>
     154     HostName <hostname>
     155     User <username>
     156     IdentityFile <private_key_location>
     157}}}
     158
     159Now you can simply run `ssh <your_alias>`, where <your_alias> can be any nickname you choose. In this
     160
     161This way requires you to add an entry for each host you have, given that the hosts that you reserve each time won't necessarily be the same, this process might end up being tedious and create a very big configuration file. Another way is to add your IdentityFile as a global parameter so it is used as an authentication method when trying to login to any host. Add these lines on the top of your ssh configuration file:
     162{{{
     163IdentityFile ~/.ssh/id_rsa
     164IdentityFile <private_key_location>
     165}}}
     166The downside with this approach is that now this change affects your authorization to all nodes, not only GENI ones.