Changes between Version 27 and Version 28 of HowTo/LoginToNodes
- Timestamp:
- 08/15/12 17:13:43 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/LoginToNodes
v27 v28 16 16 <ol> 17 17 <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> 19 19 <li> your <b> ssh key </b></li> 20 20 </ol> … … 37 37 * [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. 38 38 39 == Get your Login and Host names ==39 == Get your Login, Host names and ports == 40 40 In 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. 41 41 42 42 ==== Using Flack ==== 43 43 If 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'. 45 This is the port number you should use. 46 45 47 '''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. 46 48 … … 74 76 Any 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. 75 77 78 79 == Logging in == 80 Now that you have gathered all the different elements you are ready to login to your nodes. 81 82 ==== Linux/Mac OS/Windows Cygwin ==== 83 In 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 ==== 95 If 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 76 99 == Omni !ReadyToLogin Script == 100 If 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 ================================================================================ 114 Aggregate [https://www.emulab.net/protogeni/xmlrpc/am] has a ProtoGENI sliver. 77 115 116 117 pc522.emulab.net's geni_status is: changing 118 Login using: 119 xterm -e ssh -i /home/nriga/.ssh/geni_key inki@pc522.emulab.net -p 32570 & 120 121 pcwf171.emulab.net's geni_status is: ready 122 Login using: 123 xterm -e ssh -i /home/nriga/.ssh/geni_key inki@pcwf171.emulab.net & 124 125 ================================================================================ 126 }}} 127 You 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 128 window you can omit the 'xterm -e' part. 78 129 79 130 == Managing SSH keys on Linux, Mac hosts ==