Changes between Version 51 and Version 52 of Documentation/bAccountManagement/DSSHConf


Ignore:
Timestamp:
Jun 21, 2018, 8:59:31 PM (6 years ago)
Author:
jkol
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/bAccountManagement/DSSHConf

    v51 v52  
    1414[[CollapsibleStart(Linux)]]
    1515
    16 ''NOTE: These instructions are NOT for Ubuntu installed using Windows Susbsystem for Linux (WSL).''
     16These 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:
     17{{{
     18sudo apt-get update
     19sudo apt-get install openssh-client
     20}}}
     21
     22''NOTE: These instructions are NOT for Ubuntu running on Windows using Windows Subsystem for Linux (WSL).''
    1723
    1824==== Generating keys ====
     
    2329ssh-keygen -t rsa
    2430}}}
    25  You will be prompted for a location to save the keys, and a passphrase for the keys which we highly recommend. This passphrase will protect your private key while it's stored on the hard drive:
     31 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.
    2632{{{
    2733Generating public/private rsa key pair.
     
    3844[[BR]]
    3945==== Uploading your public key to your ORBIT account ====
    40 
    4146 To upload you public key to your orbit account, do the following:
    4247 1. Go to [https://www.orbit-lab.org/loginService/ControlPanel]
    43  1. Click on "Change My Profile" option in the left side menu
    44  1. Click the "Choose File" button next to "Public key file"
    45  1. Navigate to where your public key file is stored (typically /home/your_username/.ssh)
    46  1. Select the .pub file corresponding to the key you wish to use for ORBIT access
    47  1. Click "Open"
    48  1. Click the "Update Profile" button
    49 
    50  As a side note, expect to see a default auto generated ORBIT 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.
     48
     49 2. Click on "Change My Profile" option in the left side menu
     50
     51 3. Click the "Choose File" button next to "Public key file"
     52 
     53 4. Navigate to where your '''public key file''' is stored (typically /home/your_username/.ssh)
     54
     55 5. Select the .pub file corresponding to the key you wish to use for ORBIT access
     56
     57 6. Click "Open"
     58
     59 7. Click the "Update Profile" button
     60
     61 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.
    5162
    5263 [[Image(ControlPanel.jpg, width=700)]]
     
    8192
    8293[[CollapsibleEnd]]
    83 [[BR]]
     94
     95[[BR]]
     96
    8497[[CollapsibleStart(Windows)]]
    85 ==== PuTTY ====
    86 
    87 In putty the key generation is handled by a separate program named puttygen.exe. If you've installed putty via the installer there may be an icon for it in the putty menu group, otherwise download it [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html here]. Generating a public/private key pair on your host by using PuTTYgen as illustrated in the following table (for more details on configuration please csee [http://www.chiark.greenend.org.uk/~sgtatham/putty/ putty documentation]):
    88 
    89 || 1. || Start PuTTYgen; The running executable windows is shown on the left.  || [[Image(PuTTYgen1.jpg, width=300)]] ||
    90 || 2. || Click the Generate button. You will be asked to move mouse to generate some randomness. After that the program will generate key and display the result.[[BR]] You can leave blank "Key passphrase" and "Confirm passphrase" to be able to authenticate without passphrase.[[BR]] Save public and private key (you can recover the public key from the private key with PuTTYgen by clicking the Load button). || [[Image(PuTTYgen2.jpg, width=300)]] ||
    91 || 3. || [#Upload Upload] your new public key to your orbit account. ||||
    92 || 4. || To connect to remote host by using newly minted keys configure your session in PuTTY: '''Load''' the session profile, go to Connection > SSH > Auth window and select the newly created private key; click '''Save''' to update session profile and then proceed to connect. If you didn't specify the passphrase in step 2, you won't be prompted for the password.  || [[Image(PuTTYgen5.jpg, width=300)]] ||
    93 
    94 ==== SSH Secure Shell ====
    95 
    96 || 1. || Start the ssh client || [[Image(SecSh1.jpg, width=300)]][[BR]] ||
    97 || 2. || From the menu choose Edit> Settings option and then Key || [[Image(SecSh2.jpg, width=300)]] ||
    98 || 3. || Click the Generate button, click Next, select RSA type of the key and click Next and wait until key is generated || [[Image(SecSh3.jpg,width=300)]] ||
    99 || 4. || Enter file name for private key and comment. Leave passphrase blank. Click Next, Next and then save public key into file by clicking Export button and then click Finish || [[Image(SecSh6.jpg, width=300)]] ||
    100 || 5. || [#Upload Upload] your new public key to your orbit account. ||||
    101 || 6. || After you upload public key you can connect to host choosing Public Key option for Authentication Method. ||[[Image(SecSh8.jpg, width=300)]] ||
     98
     99These instructions assume that you are using [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html PuTTY] as your SSH client.
     100
     101==== Generating keys ====
     102 In PuTTY, the key generation is handled by a separate program named ''puttygen.exe''. If you installed PuTTY via the installer, there should be an icon for PuTTYgen in your Start menu, otherwise [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html download it from here].
     103
     104 1. Open PuTTYgen
     105
     106 2. Click the "Generate" button and follow the instructions in the "Key" section of the window
     107
     108 3. Type a passphrase of your choice in the "Key passphrase" and "Confirm passphrase" fields. This passphrase does not have to be the same as your ORBIT account password.
     109
     110 4. Click the "Save private key" button
     111
     112 5. Save the private key file somewhere you will remember on your computer. Do not share this key with anyone!
     113
     114 6. After saving the private key file, right-click in the big text box labeled "Public key for pasting into OpenSSH authorized_keys file"
     115
     116 7. Click "Select All" from the popup menu to highlight the entire public key
     117
     118 8. Right-click again in the same big box and select "Copy" from the popup menu
     119
     120 9. Open Notepad from your Start menu
     121
     122 10. Paste what you just copied from PuTTYgen into Notepad. The contents should start with {{{ssh-rsa}}} and end with something like {{{rsa-key-20180621}}}
     123
     124 11. Save this file somewhere you will remember on your computer. This is your public key file.
     125
     126 12. Close PuTTYgen
    102127
    103128[[BR]]
     
    107132 To upload you public key to your orbit account, do the following:
    108133 1. Go to [https://www.orbit-lab.org/loginService/ControlPanel]
    109  1. Click on "Change My Profile" option in the left side menu
    110  1. Click the "Choose File" button next to "Public key file"
    111  1. Navigate to where your public key file is stored (typically /home/your_username/.ssh)
    112  1. Select the .pub file corresponding to the key you wish to use for ORBIT access
    113  1. Click "Open"
    114  1. Click the "Update Profile" button
    115 
    116  As a side note, expect to see a default auto generated ORBIT 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.
     134
     135 2. Click on "Change My Profile" option in the left side menu
     136
     137 3. Click the "Choose File" button next to "Public key file"
     138
     139 4. Navigate to where your '''public key file''' is stored (the file you saved with Notepad in the previous section)
     140
     141 5. Select the public key file you wish to use for ORBIT access
     142
     143 6. Click "Open"
     144
     145 7. Click the "Update Profile" button
     146
     147 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.
    117148
    118149 [[Image(ControlPanel.jpg, width=700)]]
    119150
     151[[BR]]
     152==== Configuring your SSH client ====
     153
     154 1. Open PuTTY
     155
     156 2.
     157|| 4. || To connect to remote host by using newly minted keys configure your session in PuTTY: '''Load''' the session profile, go to Connection > SSH > Auth window and select the newly created private key; click '''Save''' to update session profile and then proceed to connect. If you didn't specify the passphrase in step 2, you won't be prompted for the password.  || [[Image(PuTTYgen5.jpg, width=300)]] ||
     158
     159[[BR]]
     160==== Common issues and how to solve them ====
     161 * TODO
     162
    120163[[CollapsibleEnd]]
    121 [[BR]]
     164
     165[[BR]]
     166
    122167[[CollapsibleStart(Mac)]]
    123 TODO
     168Mac instrucstions are currently under development. We apologize for the inconvenience.
     169
     170==== Generating keys ====
     171 TODO
     172
     173[[BR]]
     174==== Uploading your public key to you ORBIT account ====
     175 To upload you public key to your orbit account, do the following:
     176 1. Go to [https://www.orbit-lab.org/loginService/ControlPanel]
     177
     178 2. Click on "Change My Profile" option in the left side menu
     179
     180 3. Click the "Choose File" button next to "Public key file"
     181 
     182 4. Navigate to where your '''public key file''' is stored (typically /home/your_username/.ssh)
     183
     184 5. Select the .pub file corresponding to the key you wish to use for ORBIT access
     185
     186 6. Click "Open"
     187
     188 7. Click the "Update Profile" button
     189
     190 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.
     191
     192 [[Image(ControlPanel.jpg, width=700)]]
     193
     194[[BR]]
     195==== Configuring your SSH client ====
     196 TODO
     197
     198[[BR]]
     199==== Common issues and how to solve them ====
     200 * TODO
    124201[[CollapsibleEnd]]