| 101 | |
| 102 | Method 1 uses the components integrated into Windows and doesn't need any additional software to be installed |
| 103 | |
| 104 | Method 2 uses Putty and requires Putty to be installed |
| 105 | [[CollapsibleStart(Method 1)]] |
| 106 | ==== Install OpenSSH client on your Computer ==== |
| 107 | These instructions assume that you are using a currently supported version of Windows 10 and Windows 11 |
| 108 | |
| 109 | 1. Go to Settings-->Apps-->Optional Features] in Windows Settings. |
| 110 | |
| 111 | 2. If "OpenSSH Client" is listed under the Installed features, you are all set and can go to the next step. |
| 112 | |
| 113 | 3. 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 | |
| 115 | 4. 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 | |
| 117 | 5. Review details of what will be installed and click Install. |
| 118 | |
| 119 | 6. Wait for it to be installed, you might need to restart your PC according to what it says in Settings. |
| 120 | |
| 121 | ==== Generating keys ==== |
| 122 | 1. 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 | |
| 126 | 2. Type in |
| 127 | {{{ |
| 128 | cd C:\Users |
| 129 | }}} |
| 130 | |
| 131 | 3. Type in |
| 132 | {{{ |
| 133 | ls |
| 134 | }}} |
| 135 | to see what is your user name |
| 136 | |
| 137 | 4. Type in |
| 138 | {{{ |
| 139 | cd <your Username> |
| 140 | }}} |
| 141 | |
| 142 | 5. Type in |
| 143 | {{{ |
| 144 | cd .ssh |
| 145 | }}} |
| 146 | (if this folder doesn't exist then create it) |
| 147 | |
| 148 | 6. type in |
| 149 | {{{ |
| 150 | ssh-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 | {{{ |
| 154 | Generating public/private rsa key pair. |
| 155 | Enter file in which to save the key (...): |
| 156 | Enter passphrase (empty for no passphrase): |
| 157 | Enter same passphrase again: |
| 158 | Your identification has been saved in ... |
| 159 | Your public key has been saved in ... |
| 160 | The key fingerprint is: |
| 161 | SHA256:... |
| 162 | The 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 | {{{ |
| 190 | ssh 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 | {{{ |
| 200 | The authenticity of host 'gw.orbit-lab.org (128.6.192.134)' can't be established. |
| 201 | ECDSA key fingerprint is SHA256:iLKtq2Z8wB3ADJdEyM1CwoU85gOeqIUyB4GOJ2YloQg. |
| 202 | Are 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 | {{{ |
| 208 | Permission 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 | {{{ |
| 212 | ssh -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)]] |