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
Copy file name to clipboardExpand all lines: docs/installation/windows.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,21 +235,21 @@ The MSYS2 sshd service was started successfully.
235
235
ssh -l <UNPRIV_NAME> localhost
236
236
````
237
237
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,
238
-
````
238
+
```bash
239
239
<UNPRIV_NAME>@<HOSTNAME> MSYS ~
240
-
````
240
+
```
241
241
- Once logged in to the target machine, open `/etc/ssh/sshd_config` for editing, add,
242
-
````
242
+
```bash
243
243
AcceptEnv MSYSTEM
244
-
````
244
+
```
245
245
then save out the changes. On the client machine, open `/etc/ssh/ssh_config` for editing, add,
246
-
````
246
+
```bash
247
247
SendEnv MSYSTEM
248
-
````
248
+
```
249
249
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,
250
-
````
250
+
```bash
251
251
MSYSTEM=MINGW64 ssh [...]
252
-
````
252
+
```
253
253
in order to log in to the MSYS2 MinGW 64-bit shell (other possible values are MSYS2 and MINGW32).
254
254
- 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,
255
255
- in the Windows search bar, search for "Defender" and select 'Windows Defender Firewall with Advanced Security'
@@ -263,14 +263,13 @@ in order to log in to the MSYS2 MinGW 64-bit shell (other possible values are MS
263
263
- set the 'Name' field to "SSH", then click the 'Next' button
264
264
- The `ssh-keygen` utility can be used to create a more secure SSH connection and to protect your Windows user password
265
265
- If you later decide that you want to stop the `sshd` service, you can do so with,
266
-
````
266
+
```bash
267
267
net stop msys2_sshd
268
-
````
268
+
```
269
269
and can remove the service altogether with,
270
-
````
270
+
```bash
271
271
cygrunsrv -R msys2_sshd
272
-
````
272
+
```
273
273
Sources:
274
-
275
274
- <a href="https://www.msys2.org/wiki/Setting-up-SSHd" target="_blank">MSYS2 'Setting up SSHd' webpage</a>
276
275
- <a href="https://gist.github.com/samhocevar/00eec26d9e9988d080ac" target="_blank">Sam Hocevar's GitHub Gist page on setting up SSHd under MSYS2</a>
0 commit comments