Skip to content

Commit fb8acd0

Browse files
CHG: fixed formatting
1 parent 5c427ad commit fb8acd0

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/installation/windows.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,21 +235,21 @@ The MSYS2 sshd service was started successfully.
235235
ssh -l <UNPRIV_NAME> localhost
236236
````
237237
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
239239
<UNPRIV_NAME>@<HOSTNAME> MSYS ~
240-
````
240+
```
241241
- Once logged in to the target machine, open `/etc/ssh/sshd_config` for editing, add,
242-
````
242+
```bash
243243
AcceptEnv MSYSTEM
244-
````
244+
```
245245
then save out the changes. On the client machine, open `/etc/ssh/ssh_config` for editing, add,
246-
````
246+
```bash
247247
SendEnv MSYSTEM
248-
````
248+
```
249249
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
251251
MSYSTEM=MINGW64 ssh [...]
252-
````
252+
```
253253
in order to log in to the MSYS2 MinGW 64-bit shell (other possible values are MSYS2 and MINGW32).
254254
- 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,
255255
- 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
263263
- set the 'Name' field to "SSH", then click the 'Next' button
264264
- The `ssh-keygen` utility can be used to create a more secure SSH connection and to protect your Windows user password
265265
- If you later decide that you want to stop the `sshd` service, you can do so with,
266-
````
266+
```bash
267267
net stop msys2_sshd
268-
````
268+
```
269269
and can remove the service altogether with,
270-
````
270+
```bash
271271
cygrunsrv -R msys2_sshd
272-
````
272+
```
273273
Sources:
274-
275274
- <a href="https://www.msys2.org/wiki/Setting-up-SSHd" target="_blank">MSYS2 'Setting up SSHd' webpage</a>
276275
- <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

Comments
 (0)