Changes between Version 70 and Version 71 of Documentation/bAccountManagement/DSSHConf


Ignore:
Timestamp:
May 31, 2022, 8:01:40 PM (2 years ago)
Author:
yuezhenglingluan
Comment:

Add a new method for ssh into orbit on Windows

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/bAccountManagement/DSSHConf

    v70 v71  
    1313
    1414[[CollapsibleStart(Linux)]]
    15 ''NOTE: These instructions are NOT for Ubuntu running on Windows using Windows Subsystem for Linux (WSL).''
     15''NOTE: These instructions are NOT for Ubuntu running on Windows using Windows Subsystem for Linux (WSL).
     16
     17Tested and this method works for Ubuntu running on Windows Subsystem for Linux 2 (WSL2)''
    1618
    1719These 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:
     
    9799
    98100[[CollapsibleStart(Windows)]]
     101
     102Method 1 uses the components integrated into Windows and doesn't need any additional software to be installed
     103
     104Method 2 uses Putty and requires Putty to be installed
     105[[CollapsibleStart(Method 1)]]
     106==== Install OpenSSH client on your Computer ====
     107These instructions assume that you are using a currently supported version of Windows 10 and Windows 11
     108
     1091. Go to Settings-->Apps-->Optional Features] in Windows Settings.
     110
     1112. If "OpenSSH Client" is listed under the Installed features, you are all set and can go to the next step.
     112
     1133. 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.
     114
     1154. 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.
     116
     1175. Review details of what will be installed and click Install.
     118
     1196. Wait for it to be installed, you might need to restart your PC according to what it says in Settings.
     120
     121==== Generating keys ====
     1221. Open Powershell in Windows as Admin.
     123
     124''Steps 2-5 is to make sure that you save your key files in the correct location''
     125
     1262. Type in
     127{{{
     128cd C:\Users
     129}}}
     130
     1313. Type in
     132{{{
     133ls
     134}}}
     135to see what is your user name
     136
     1374. Type in
     138{{{
     139cd <your Username>
     140}}}
     141
     1425. Type in
     143{{{
     144cd .ssh
     145}}}
     146(if this folder doesn't exist then create it)
     147
     1486. type in
     149{{{
     150ssh-keygen -t rsa
     151}}}
     152 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.
     153{{{
     154Generating public/private rsa key pair.
     155Enter file in which to save the key (...):
     156Enter passphrase (empty for no passphrase):
     157Enter same passphrase again:
     158Your identification has been saved in ...
     159Your public key has been saved in ...
     160The key fingerprint is:
     161SHA256:...
     162The key's randomart image is:
     163...
     164}}}
     165
     166==== Uploading your public key to your ORBIT account ====
     167 To upload you public key to your orbit account, do the following:
     168 1. Go to [https://www.orbit-lab.org/cPanel/controlPanel/start] and sign in with your ORBIT username and password
     169
     170 2. Click on "Change My Profile" option in the left side menu
     171
     172 3. Click the "Choose File" button next to "Public key file"
     173 
     174 4. Navigate to where your '''public key file''' is stored (typically C:\Users\your_username\.ssh)
     175
     176 5. Select the .pub file corresponding to the key you wish to use for ORBIT access
     177
     178 6. Click "Open"
     179
     180 7. Click the "Update Profile" button
     181
     182 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.
     183
     184 [[Image(ControlPanel.jpg, width=700)]]
     185
     186==== Configuring your SSH client ====
     187  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.
     188 To test your setup, open Powershell and (replacing ''your_orbit_username'' with your own ORBIT username) type:
     189{{{
     190ssh your_orbit_username@gw.orbit-lab.org
     191}}}
     192 You should be prompted to enter your key file passphrase and be able to successfully connect.
     193
     194 Type {{{exit}}} and press the Enter key to end the SSH session.
     195
     196[[BR]]
     197==== Common issues and how to solve them ====
     198 * If you receive a message like the following:
     199{{{
     200The authenticity of host 'gw.orbit-lab.org (128.6.192.134)' can't be established.
     201ECDSA key fingerprint is SHA256:iLKtq2Z8wB3ADJdEyM1CwoU85gOeqIUyB4GOJ2YloQg.
     202Are you sure you want to continue connecting (yes/no)?
     203}}}
     204 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.
     205[[BR]]
     206 * If you receive a message like the following:
     207{{{
     208Permission denied (publickey).
     209}}}
     210 Try connecting again but manually specifying the location where your private SSH key is stored as in the following example:
     211{{{
     212ssh -i /path_to_where_key_is_stored/private_ssh_key_name your_orbit_username@gw.orbit-lab.org
     213}}}
     214[[CollapsibleEnd]]
     215[[CollapsibleStart(Method 2)]]
    99216These instructions assume that you are using [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html PuTTY] as your SSH client.
    100217
     
    207324 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}}} or click "Yes" and connection will proceed normally.
    208325[[BR]]
     326
     327[[CollapsibleEnd]]
    209328
    210329[[CollapsibleEnd]]