You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export ISSM_DIR_WIN=$(cygpath -ms "${ISSM_DIR}") # Needed by MATLAB
117
-
````
118
-
where `<MATLAB_VER>` is the version of MATLAB that you have installed (for example, "R2023b") and `<ISSM_DIR>` is the path to the copy of the ISSM source code that you checked out (e.g. `/c/Users/<USER>/ISSM/src`, where `<USER>` is your username)
117
+
````
118
+
where `<MATLAB_VER>` is the version of MATLAB that you have installed (for example, "R2023b") and `<ISSM_DIR>` is the path to the copy of the ISSM source code that you checked out (e.g. `/c/Users/<USER>/ISSM/src`, where `<USER>` is your username)
119
+
119
120
## Microsoft MPI
120
121
121
122
- Navigate to <ahref="https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi-release-notes"target="_blank">the 'Microsoft MPI Release Notes' webpage</a>
@@ -162,10 +163,10 @@ autoreconf -ivf
162
163
- Replace `<NUM_CPUS>` with the number of available CPU's
163
164
- `MATLAB_PATH` was defined previously in `bashrc`.
164
165
- `MSMPI_ROOT` will be defined after running,
165
-
````
166
+
````
166
167
$ source ${ISSM_DIR}/etc/environment.sh
167
-
````
168
-
- You may need to update the path to `libgfortran` in the `--with-fortran-lib` option
168
+
````
169
+
- You may need to update the path to `libgfortran` in the `--with-fortran-lib` option
169
170
170
171
Next, create a configuration file called `configure.sh` in `${ISSM_DIR}`. Its contents will depend on the interface you will be using, the external packages and capabilities you wish to use, and the location of certain libraries and executables on disk. The following examples can be used for an installation of ISSM with basic capabilities,
171
172
@@ -212,61 +213,61 @@ You are now ready to
212
213
- Navigate to <a href="https://www.msys2.org/wiki/Setting-up-SSHd" target="_blank">the MSYS2 'Setting up SSHd' webpage</a>
213
214
- Copy the contents of the code block and paste to a new text file
214
215
- Set the value of the variable `UNPRIV_NAME` to the desired user
215
-
- If the user does not already exist, it will be created
216
-
- If the user does already exist, note the default password is the same that is used to log in to the Windows user account
216
+
- If the user does not already exist, it will be created
217
+
- If the user does already exist, note the default password is the same that is used to log in to the Windows user account
217
218
- Save the file out to the location of your choice
218
219
- In a MSYS2 MinGW 64-bit shell instance, run the script
219
220
- If errors occur with messages about missing packages, install those packages and run the script again
220
221
- You can disregard the message,
221
-
````
222
+
````
222
223
cygrunsrv: Error removing a service: OpenService: Win32 error 1060:
223
224
The specified service does not exist as an installed service.
224
-
````
225
-
- The following message indicates that setup was successful,
226
-
````
225
+
````
226
+
- The following message indicates that setup was successful,
227
+
````
227
228
The MSYS2 sshd service is starting.
228
229
The MSYS2 sshd service was started successfully.
229
-
````
230
-
- You can test that the service and your log in are working correctly by running,
231
-
````
230
+
````
231
+
- You can test that the service and your log in are working correctly by running,
232
+
````
232
233
ssh -l <UNPRIV_NAME> localhost
233
-
````
234
-
where `<UNPRIV_NAME>` is the same user that we authorized to use the service. You should be prompted to accept an ECDSA fingerprint, you which you respond "yes". Then, enter the password for this account. If all goes well, you should now have a prompt that reads,
235
-
````
234
+
````
235
+
where `<UNPRIV_NAME>` is the same user that we authorized to use the service. You should be prompted to accept an ECDSA fingerprint, you which you respond "yes". Then, enter the password for this account. If all goes well, you should now have a prompt that reads,
236
+
````
236
237
<UNPRIV_NAME>@<HOSTNAME> MSYS ~
237
-
````
238
-
- Once logged in to the target machine, open `/etc/ssh/sshd_config` for editing, add,
239
-
````
238
+
````
239
+
- Once logged in to the target machine, open `/etc/ssh/sshd_config` for editing, add,
240
+
````
240
241
AcceptEnv MSYSTEM
241
-
````
242
-
then save out the changes. On the client machine, open `/etc/ssh/ssh_config` for editing, add,
243
-
````
242
+
````
243
+
then save out the changes. On the client machine, open `/etc/ssh/ssh_config` for editing, add,
244
+
````
244
245
SendEnv MSYSTEM
245
-
````
246
-
to the file (you can add `MSYSTEM` to the list of environment variables if `SendEnv` already exists), then save out the changes. You can now prefix your SSH commands like,
247
-
````
246
+
````
247
+
to the file (you can add `MSYSTEM` to the list of environment variables if `SendEnv` already exists), then save out the changes. You can now prefix your SSH commands like,
248
+
````
248
249
MSYSTEM=MINGW64 ssh [...]
249
-
````
250
-
in order to log in to the MSYS2 MinGW 64-bit shell (other possible values are MSYS2 and MINGW32).
250
+
````
251
+
in order to log in to the MSYS2 MinGW 64-bit shell (other possible values are MSYS2 and MINGW32).
251
252
- If an attempted SSH connection from a remote machine stalls out or is denied, it may be the case that you are running Windows Defender Firewall and need to open port 22. To do so,
252
-
- in the Windows search bar, search for "Defender" and select 'Windows Defender Firewall with Advanced Security'
253
-
- click 'Inbound Rules' in the left sidebar
254
-
- click 'New Rule...' in the right sidebar
255
-
- select 'Port', then click the 'Next' button
256
-
- select 'TCP'
257
-
- select 'Specific local ports', set the field to "22", then click the 'Next' button
258
-
- select 'Allow the connection' then click the 'Next' button (if you are using a third-party firewall application, it is up to you to determine how to open port 22)
259
-
- uncheck the 'Public' box (if a subsequent attempted connection stalls out or is denied, you may need to edit this rule, checking the 'Public' box, but try first without it), then click the 'Next' button
260
-
- set the 'Name' field to "SSH", then click the 'Next' button
253
+
- in the Windows search bar, search for "Defender" and select 'Windows Defender Firewall with Advanced Security'
254
+
- click 'Inbound Rules' in the left sidebar
255
+
- click 'New Rule...' in the right sidebar
256
+
- select 'Port', then click the 'Next' button
257
+
- select 'TCP'
258
+
- select 'Specific local ports', set the field to "22", then click the 'Next' button
259
+
- select 'Allow the connection' then click the 'Next' button (if you are using a third-party firewall application, it is up to you to determine how to open port 22)
260
+
- uncheck the 'Public' box (if a subsequent attempted connection stalls out or is denied, you may need to edit this rule, checking the 'Public' box, but try first without it), then click the 'Next' button
261
+
- set the 'Name' field to "SSH", then click the 'Next' button
261
262
- The `ssh-keygen` utility can be used to create a more secure SSH connection and to protect your Windows user password
262
263
- If you later decide that you want to stop the `sshd` service, you can do so with,
263
-
````
264
+
````
264
265
net stop msys2_sshd
265
-
````
266
-
and can remove the service altogether with,
267
-
````
266
+
````
267
+
and can remove the service altogether with,
268
+
````
268
269
cygrunsrv -R msys2_sshd
269
-
````
270
+
````
270
271
Sources:
271
272
272
273
- <a href="https://www.msys2.org/wiki/Setting-up-SSHd" target="_blank">MSYS2 'Setting up SSHd' webpage</a>
0 commit comments