Changes between Initial Version and Version 1 of Workshops/MERIF2023/Signup Instructions


Ignore:
Timestamp:
May 9, 2023, 9:13:21 PM (19 months ago)
Author:
jennyshane
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Workshops/MERIF2023/Signup Instructions

    v1 v1  
     1[[Include(WikiToC)]]
     2
     3= MERIF 2023 Cosmos Testbed Tutorial =
     4
     5= ''Signup Instructions'' =
     6
     7== Prerequisites ==
     8If you are registered for the tutorial session and you are planning to participate in the live demos, please follow these instructions prior to the session. We may not be able to provide prompt assistance with account creation during the session.
     9
     10=== Create an Orbit Account ===
     11 1. Register for a !Cosmos/Orbit account here: [https://www.orbit-lab.org/userManagement/register]. For your organization, please select "MERIF 2023 Workshop" from the drop-down menu as shown:
     12
     13 [[Image(registration.png, 800)]]
     14
     15 2. Look for a verification email with a link. After clicking the verification link, your account will be submitted to Cosmos administrators for approval. Account approval is not immediate, so please try to do this in advance of the tutorial. Please note that your account will not be approved unless you are registered for the tutorial.
     16
     17=== Set up SSH keys ===
     18
     19**NOTE: You can set up your ssh keys even if you have not yet received confirmation of your orbit account.**
     20
     21Access to the Cosmos testbed is typically through [https://en.wikipedia.org/wiki/Ssh SSH], which requires the use of public key authentication. You will need to generate a public-private pair of keys and upload them to the account management page so that you can use your keys to log into Cosmos machines. You will also need to verify that you have an SSH client available on your personal machine.
     22
     23[[CollapsibleStart(Linux)]]
     24''NOTE: These instructions are NOT for Ubuntu running on Windows using Windows Subsystem for Linux (WSL).''
     25
     26These instructions assume you will be using a standard command-line SSH client for linux. If you have not already done so, ensure that you have it installed by running the following commands in a command-line terminal:
     27{{{#!shell
     28sudo apt-get update
     29sudo apt-get install openssh-client
     30}}}
     31
     32==== Generating keys
     33 Each distribution has their own location for the specific generation tools. These instructions are based on the  documentation for Ubuntu ([https://help.ubuntu.com/community/SSH/OpenSSH/Keys located here]).
     34
     35 To create your public and private SSH keys, open a command-line terminal and type:
     36{{{#!shell
     37ssh-keygen -t rsa
     38}}}
     39 You will be prompted for a location to save the keys, and a passphrase for the keys which we highly recommend using. This passphrase does not have to be the same as your COSMOS account password.
     40{{{#!shell-session
     41Generating public/private rsa key pair.
     42Enter file in which to save the key (...):
     43Enter passphrase (empty for no passphrase):
     44Enter same passphrase again:
     45Your identification has been saved in ...
     46Your public key has been saved in ...
     47Your public key is now available as .ssh/id_rsa.pub in your home folder.
     48}}}
     49
     50 This process will generate and store a private key and a public key file. The private key will be stored in the file and location you specify when prompted, and the public key file will be named the same as your private key file but with a .pub extension.
     51
     52[[BR]]
     53==== Uploading your public key to your COSMOS account
     54 To upload you public key to your cosmos account, do the following:
     55 1. Go to [https://wiki.cosmos-lab.org/cPanel/accountManagement/adminAuthKeys Profile] and sign in with your COSMOS username and password
     56
     57 2. Click on "Change My Profile" option in the left side menu
     58
     59 3. Click the "Choose File" button next to "Public key file"
     60 
     61 4. Navigate to where your '''public key file''' is stored (typically /home/your_username/.ssh)
     62
     63 5. Select the .pub file corresponding to the key you wish to use for COSMOS access
     64
     65 6. Click "Open"
     66
     67 7. Click the "Update Profile" button
     68
     69 As a side note, expect to see a default auto generated public key in the list (ends with @internal1). This is used for SSH access between machines inside the COSMOS network. Please do NOT delete this key.
     70
     71 [[Image(wiki:UserGuide/RemoteAccess/SSH:ControlPanel.jpg, width=700)]]
     72
     73[[BR]]
     74==== Configuring your SSH client
     75  Under normal circumstances, as long as the private key file is located in the /home/your_username/.ssh/ folder, the command line SSH client will use the correct key when connecting.
     76 To test your setup, open a command-line terminal and (replacing ''your_cosmos_username'' with your own COSMOS username) type:
     77{{{#!shell-session
     78ssh your_cosmos_username@gw.orbit-lab.org
     79}}}
     80 You should be prompted to enter your key file passphrase and be able to successfully connect.
     81
     82 Type {{{exit}}} and press the Enter key to end the SSH session.
     83
     84[[BR]]
     85==== Common issues and how to solve them
     86 * If you receive a message like the following:
     87{{{#!shell-session
     88The authenticity of host 'gw.orbit-lab.org (128.6.192.134)' can't be established.
     89ECDSA key fingerprint is SHA256:iLKtq2Z8wB3ADJdEyM1CwoU85gOeqIUyB4GOJ2YloQg.
     90Are you sure you want to continue connecting (yes/no)?
     91}}}
     92 This is a normal message that occurs when your computer connects via SSH to another that it has never connected to before or if the "fingerprint" of the other machine changed (due to replacement or reconfiguration). Simply type {{{yes}}} and connection will proceed normally.
     93[[BR]]
     94 * If you receive a message like the following:
     95{{{#!shell-session
     96Permission denied (publickey).
     97}}}
     98 Try connecting again but manually specifying the location where your private SSH key is stored as in the following example:
     99{{{#!shell-session
     100ssh -i /path/to/your/private_key your_cosmos_username@gw.orbit-lab.org
     101}}}
     102
     103[[CollapsibleEnd]]
     104
     105[[BR]]
     106[[CollapsibleStart(Windows)]]
     107==== Install OpenSSH client on your Computer ====
     108These instructions assume that you are using a currently supported version of Windows 10 and Windows 11. If you are using an older version of windows, please follow the instructions on this page: [https://wiki.cosmos-lab.org/wiki/GettingStarted#no3].
     109
     1101. Go to Settings-->Apps-->Optional Features] in Windows Settings.
     111
     1122. If "OpenSSH Client" is listed under the Installed features, you are all set and can go to the next step.
     113
     1143. If "OpenSSH Client" is not listed under the Installed features, click on the View features button right next to the Add an optional feature text.
     115
     1164. In the Search bar on top of the Add an optional feature, type in "OpenSSH Client", and click on the checkbox next to it, and click next.
     117
     1185. Review details of what will be installed and click Install.
     119
     1206. Wait for it to be installed, you might need to restart your PC according to what it says in Settings.
     121
     122==== Generating keys ====
     1231. Open Powershell in Windows as Admin.
     124
     125''The following steps ensure that your key is saved in the right location''
     126
     1272. Type in
     128{{{
     129cd C:\Users
     130}}}
     131
     1323. Type in
     133{{{
     134ls
     135}}}
     136 to see what is your user name
     137
     1384. Type in
     139{{{
     140cd <your Username>
     141}}}
     142
     1435. Type in
     144{{{
     145cd .ssh
     146}}}
     147 (if this folder doesn't exist then create it)
     148
     1496. type in
     150{{{
     151ssh-keygen -t rsa
     152}}}
     153 You will be prompted for a location to save the keys, and a passphrase for the keys which we highly recommend using. This passphrase does not have to be the same as your ORBIT account password.
     154{{{
     155Generating public/private rsa key pair.
     156Enter file in which to save the key (...):
     157Enter passphrase (empty for no passphrase):
     158Enter same passphrase again:
     159Your identification has been saved in ...
     160Your public key has been saved in ...
     161The key fingerprint is:
     162SHA256:...
     163The key's randomart image is:
     164...
     165}}}
     166
     167==== Uploading your public key to your ORBIT account ====
     168 To upload you public key to your orbit account, do the following:
     169 1. Go to [https://www.orbit-lab.org/cPanel/controlPanel/start] and sign in with your ORBIT username and password
     170
     171 2. Click on "Change My Profile" option in the left side menu
     172
     173 3. Click the "Choose File" button next to "Public key file"
     174 
     175 4. Navigate to where your '''public key file''' is stored (typically C:\Users\your_username\.ssh)
     176
     177 5. Select the .pub file corresponding to the key you wish to use for ORBIT access
     178
     179 6. Click "Open"
     180
     181 7. Click the "Update Profile" button
     182
     183 As a side note, expect to see a default auto generated public key in the list (ends with @internal1). This is used for SSH access between machines inside the ORBIT network. Please do NOT delete this key.
     184
     185 [[Image(wiki:UserGuide/RemoteAccess/SSH:ControlPanel.jpg, width=700)]]
     186
     187==== Configuring your SSH client ====
     188  Under normal circumstances, as long as the private key file is located in the C:\Users\your_username\.ssh\ folder, the command line SSH client will use the correct key when connecting.
     189 To test your setup, open Powershell and (replacing ''your_orbit_username'' with your own ORBIT username) type:
     190{{{
     191ssh your_orbit_username@gw.orbit-lab.org
     192}}}
     193 You should be prompted to enter your key file passphrase and be able to successfully connect.
     194
     195 Type {{{exit}}} and press the Enter key to end the SSH session.
     196
     197[[BR]]
     198==== Common issues and how to solve them ====
     199 * If you receive a message like the following:
     200{{{
     201The authenticity of host 'gw.orbit-lab.org (128.6.192.134)' can't be established.
     202ECDSA key fingerprint is SHA256:iLKtq2Z8wB3ADJdEyM1CwoU85gOeqIUyB4GOJ2YloQg.
     203Are you sure you want to continue connecting (yes/no)?
     204}}}
     205 This is a normal message that occurs when your computer connects via SSH to another that it has never connected to before or if the "fingerprint" of the other machine changed (due to replacement or reconfiguration). Simply type {{{yes}}} and connection will proceed normally.
     206[[BR]]
     207 * If you receive a message like the following:
     208{{{
     209Permission denied (publickey).
     210}}}
     211 Try connecting again but manually specifying the location where your private SSH key is stored as in the following example:
     212{{{
     213ssh -i /path/to/your/private_key your_orbit_username@gw.orbit-lab.org
     214}}}
     215[[CollapsibleEnd]]
     216
     217[[BR]]
     218
     219[[CollapsibleStart(Mac)]]
     220
     221Mac OS has a native command line ssh client that can be used to remotely log into consoles. From the Finder select Applications -> Utilities -> Terminal to open a command line terminal.
     222
     223==== Generating keys
     224Generate the public and private keys using the following command
     225{{{
     226ssh-keygen -t rsa
     227}}}
     228
     229Follow the prompt to save the keys in the default location, use a passphrase for additional security. Once your keys are saved successfully, a 'randomart' will be generated.
     230{{{#!shell-session
     231your_username@Macintosh ~ % ssh-keygen -t rsa -C mac
     232Generating public/private rsa key pair.
     233Enter file in which to save the key (/Users/your_username/.ssh/id_rsa):
     234Created directory '/Users/your_username/.ssh'.
     235Enter passphrase (empty for no passphrase):
     236Enter same passphrase again:
     237Your identification has been saved in /Users/your_username/.ssh/id_rsa.
     238Your public key has been saved in /Users/your_username/.ssh/id_rsa.pub.
     239The key fingerprint is:
     240SHA256:... mac
     241The key's randomart image is:
     242...
     243}}}
     244
     245[[BR]]
     246==== Uploading your public key to you COSMOS account
     247 To upload you public key to your cosmos account, do the following:
     248 1. Go to [https://wiki.cosmos-lab.org/cPanel/accountManagement/adminAuthKeys Profile] and sign in with your COSMOS username and password
     249
     250 2. Click on "Change My Profile" option in the left side menu
     251
     252 3. Click the "Choose File" button next to "Public key file"
     253 
     254 4. Navigate to where your '''public key file''' is stored (typically /Users/your_username/.ssh). Note: because the .ssh folder begins with a period, it is hidden in the file browser by default. You can press "command"+"shift"+"." to show hidden files and folders in the file browser.
     255
     256 5. Select the .pub file corresponding to the key you wish to use for COSMOS access
     257
     258 6. Click "Open"
     259
     260 7. Click the "Update Profile" button
     261
     262 As a side note, expect to see a default auto generated public key in the list (ends with @internal1). This is used for SSH access between machines inside the COSMOS network. Please do NOT delete this key.
     263
     264 [[Image(wiki:UserGuide/RemoteAccess/SSH:ControlPanel.jpg, width=700)]]
     265
     266[[BR]]
     267==== Configuring your SSH client
     268 Under normal circumstances, as long as the private key file is located in the /Users/your_username/.ssh/ folder, the command line SSH client will use the correct key when connecting.
     269
     270 To test your setup, open a command-line terminal and (replacing ''your_orbit_username'' with your own ORBIT username) type:
     271{{{
     272ssh your_orbit_username@gw.orbit-lab.org
     273}}}
     274 You should be prompted to enter your key file passphrase and be able to successfully connect.
     275
     276 Type {{{exit}}} and press the Enter key to end the SSH session.
     277
     278
     279[[BR]]
     280==== Common issues and how to solve them
     281 * If you receive a message like the following:
     282{{{#!shell-session
     283The authenticity of host 'gw.orbit-lab.org (128.6.192.134)' can't be established.
     284ECDSA key fingerprint is SHA256:iLKtq2Z8wB3ADJdEyM1CwoU85gOeqIUyB4GOJ2YloQg.
     285Are you sure you want to continue connecting (yes/no)?
     286}}}
     287 This is a normal message that occurs when your computer connects via SSH to another that it has never connected to before or if the "fingerprint" of the other machine changed (due to replacement or reconfiguration). Simply type {{{yes}}} and connection will proceed normally.
     288[[BR]]
     289 * If you receive a message like the following:
     290{{{#!shell-session
     291Permission denied (publickey).
     292}}}
     293 Try connecting again but manually specifying the location where your private SSH key is stored as in the following example:
     294{{{#!shell-session
     295ssh -i /path/to/your/private_key your_cosmos_username@gw.orbit-lab.org
     296}}}
     297[[CollapsibleEnd]]
     298