Changes between Version 2 and Version 3 of Workshops/Sig Comm2022/Signup Instructions


Ignore:
Timestamp:
Aug 9, 2022, 8:08:23 PM (2 years ago)
Author:
jennyshane
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Workshops/Sig Comm2022/Signup Instructions

    v2 v3  
    9191 Try connecting again but manually specifying the location where your private SSH key is stored as in the following example:
    9292{{{#!shell-session
    93 ssh -i /path_to_where_key_is_stored/private_ssh_key_name your_cosmos_username@gw.orbit-lab.org
     93ssh -i /path/to/your/private_key your_cosmos_username@gw.orbit-lab.org
    9494}}}
    9595
     
    9797
    9898[[BR]]
     99[[CollapsibleStart(Windows)]]
     100==== Install OpenSSH client on your Computer ====
     101These 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].
     102
     1031. Go to Settings-->Apps-->Optional Features] in Windows Settings.
     104
     1052. If "OpenSSH Client" is listed under the Installed features, you are all set and can go to the next step.
     106
     1073. 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.
     108
     1094. 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.
     110
     1115. Review details of what will be installed and click Install.
     112
     1136. Wait for it to be installed, you might need to restart your PC according to what it says in Settings.
     114
     115==== Generating keys ====
     1161. Open Powershell in Windows as Admin.
     117
     118''The following steps ensure that your key is saved in the right location''
     119
     1202. Type in
     121{{{
     122cd C:\Users
     123}}}
     124
     1253. Type in
     126{{{
     127ls
     128}}}
     129 to see what is your user name
     130
     1314. Type in
     132{{{
     133cd <your Username>
     134}}}
     135
     1365. Type in
     137{{{
     138cd .ssh
     139}}}
     140 (if this folder doesn't exist then create it)
     141
     1426. type in
     143{{{
     144ssh-keygen -t rsa
     145}}}
     146 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.
     147{{{
     148Generating public/private rsa key pair.
     149Enter file in which to save the key (...):
     150Enter passphrase (empty for no passphrase):
     151Enter same passphrase again:
     152Your identification has been saved in ...
     153Your public key has been saved in ...
     154The key fingerprint is:
     155SHA256:...
     156The key's randomart image is:
     157...
     158}}}
     159
     160==== Uploading your public key to your ORBIT account ====
     161 To upload you public key to your orbit account, do the following:
     162 1. Go to [https://www.orbit-lab.org/cPanel/controlPanel/start] and sign in with your ORBIT username and password
     163
     164 2. Click on "Change My Profile" option in the left side menu
     165
     166 3. Click the "Choose File" button next to "Public key file"
     167 
     168 4. Navigate to where your '''public key file''' is stored (typically C:\Users\your_username\.ssh)
     169
     170 5. Select the .pub file corresponding to the key you wish to use for ORBIT access
     171
     172 6. Click "Open"
     173
     174 7. Click the "Update Profile" button
     175
     176 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.
     177
     178 [[Image(wiki:UserGuide/RemoteAccess/SSH:ControlPanel.jpg, width=700)]]
     179
     180==== Configuring your SSH client ====
     181  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.
     182 To test your setup, open Powershell and (replacing ''your_orbit_username'' with your own ORBIT username) type:
     183{{{
     184ssh your_orbit_username@gw.orbit-lab.org
     185}}}
     186 You should be prompted to enter your key file passphrase and be able to successfully connect.
     187
     188 Type {{{exit}}} and press the Enter key to end the SSH session.
     189
     190[[BR]]
     191==== Common issues and how to solve them ====
     192 * If you receive a message like the following:
     193{{{
     194The authenticity of host 'gw.orbit-lab.org (128.6.192.134)' can't be established.
     195ECDSA key fingerprint is SHA256:iLKtq2Z8wB3ADJdEyM1CwoU85gOeqIUyB4GOJ2YloQg.
     196Are you sure you want to continue connecting (yes/no)?
     197}}}
     198 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.
     199[[BR]]
     200 * If you receive a message like the following:
     201{{{
     202Permission denied (publickey).
     203}}}
     204 Try connecting again but manually specifying the location where your private SSH key is stored as in the following example:
     205{{{
     206ssh -i /path/to/your/private_key your_orbit_username@gw.orbit-lab.org
     207}}}
     208[[CollapsibleEnd]]