Changes between Version 27 and Version 28 of HowTo/LoginToNodes


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

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/LoginToNodes

    v27 v28  
    1616<ol>
    1717 <li> an <b> ssh client </b> </li>
    18  <li> your <b>login name</b>, and the <b>hostname </b> </li>
     18 <li> your <b>login name</b>, <b>hostname </b> and <b> port </b></li>
    1919 <li> your <b> ssh key </b></li>
    2020</ol>
     
    3737 * [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty]: a lightweight free ssh client. '''Note:''' If you are using Putty you will also need to download puttygen to convert your private key to putty's format.
    3838
    39 == Get your Login and Host names ==
     39== Get your Login, Host names and ports ==
    4040In order to figure out your login name the best way is to use the [wiki:GAPI_AM_API_V3#Status status command] of the GENI AM API. Depending of which tool you used to reserve the resources you can get this information in different ways.
    4141
    4242==== Using Flack ====
    4343If you are using [http://www.protogeni.net/flack Flack] for building your experiment then in order to get the login name you need to load your slice in Flack and press on the (i) icon that is next to the node.
    44 [[Image(pc-info.png)]]. On the top of the information window it has a field that says `Username`, and `Hostname`.
     44[[Image(pc-info.png)]]. On the top of the information window it has a field that says `Username`, and `Hostname`. In the end of the host name there will be  `:<port number>', e.g. 'pcwf171.emulab.net:22'.
     45This is the port number you should use.
     46 
    4547'''Note:''' If you are on a Mac computer then you can directly use the 'SSH' button that is on the top on the information pane for the host.
    4648
     
    7476Any tool that uses the GENI AM API to reserve resources, provides the public keys to the AM to be installed on the compute resources. If you can't figure out which keys the tool you used installed on the hosts, please send an email to [mailto:help@geni.net] telling us which tool you used and we will be happy to help.
    7577
     78
     79== Logging in ==
     80Now that you have gathered all the different elements you are ready to login to your nodes.
     81
     82====  Linux/Mac OS/Windows Cygwin ====
     83In a Linux or a Mac host do the following :
     84  1. Open a terminal
     85  2. Ensure that your private key has the right permissions. Type :
     86    {{{
     87       chmod 700 <private_key_file>
     88    }}}
     89  3. Run ssh  and enter your passphrase when prompted. '''Note''': If you are prompted for a password then something went wrong. Make sure that all the information is correct.
     90   {{{
     91       ssh -i <private key location> <username>@hostname -p <port>
     92   }}}
     93
     94==== Windows Putty ====
     95If you are using putty on a windows machine then follow these steps:
     96   1. Convert your private key to the format that putty is expecting to. To do this use the puttygen program. For more information look [https://apps.state.or.us/tech/htdocs/putty/Chapter8.html#8.2.12 here]
     97   2. Create a new session that uses the username, hostname and port that you have gathered. Also under the authentication menu make sure you point the key field to the key that you generated in putty format.
     98
    7699== Omni !ReadyToLogin Script ==
     100If you are trying to login to the hosts from the machine where you have Omni installed, then you can use the readyToLogin.py script that comes with Omni to give you the exact command you need to run. To do this follow these steps:
     101  1. Modify your PYTHONPATH to include the omni src directory
     102     {{{
     103         export PYTHONPATH=$PYTHONPATH:<path_to_gcf_directory>/src
     104     }}}
     105  2. The readyToLogin.py script uses the same arguments as Omni. You will need to provide the script the same input as the input you would provide to the sliverstatus command.  While at the gcf directory run:
     106       {{{
     107          readyToLogin -a <AM_URL> <slicename>
     108       }}}
     109      In the end of the output there should be information about the ssh commands:
     110      {{{
     111           nriga@pella:~/gcf$ ./examples/readyToLogin.py websrv -a pg-utah
     112           <MISSING OUTPUT>
     113================================================================================
     114Aggregate [https://www.emulab.net/protogeni/xmlrpc/am] has a ProtoGENI sliver.
    77115
     116
     117pc522.emulab.net's geni_status is: changing
     118Login using:
     119        xterm -e ssh -i /home/nriga/.ssh/geni_key inki@pc522.emulab.net -p 32570 &
     120
     121pcwf171.emulab.net's geni_status is: ready
     122Login using:
     123        xterm -e ssh -i /home/nriga/.ssh/geni_key inki@pcwf171.emulab.net &
     124
     125================================================================================
     126      }}}
     127You can directly copy and paste the commands to your terminal and execute them. If you don't want the ssh to be opened in a new
     128window you can omit the 'xterm -e' part.
    78129
    79130== Managing SSH keys on Linux, Mac hosts ==