Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 370933a

Browse files
author
Katie Horne
authored
chore: fix SSH instructions numbering (#186)
1 parent 716b5df commit 370933a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

admin/environment-management/ssh-access.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ advanced functionality like X11 forwarding or `sshd_config` specifications.
2020
If SSH is the primary mode of access to Coder for your users, consider
2121
running a full OpenSSH server with `systemd` inside your image instead.
2222

23-
To do so:
24-
25-
1. Add the following to your Dockerfile:
23+
To do so, add the following to your Dockerfile:
2624

2725
```Dockerfile
2826
FROM ubuntu:20.04
@@ -41,20 +39,19 @@ RUN rm /etc/environment
4139
RUN echo "PermitUserEnvironment yes" >> /etc/ssh/sshd_config && \
4240
echo "X11Forwarding yes" >> /etc/ssh/sshd_config && \
4341
echo "X11UseLocalhost no" >> /etc/ssh/sshd_config
44-
4542
```
4643

47-
2. Make sure that you're creating your environments with the [CVM
48-
option](https://coder.com/docs/environments/cvms) enabled
44+
Then, make sure that you're creating your environments with the [CVM
45+
option](https://coder.com/docs/environments/cvms) enabled.
4946

50-
> If Coder detects a running TCP server on port 22, it will forward incoming SSH
51-
> traffic to this server. This means that environments should not run
52-
> a TCP server on port 22 unless it can properly handle incoming SSH traffic.
47+
> If Coder detects a running TCP server on port 22, it will forward incoming
48+
> SSH traffic to this server. This means that environments should not run a
49+
> TCP server on port 22 unless it can properly handle incoming SSH traffic.
5350
5451
At startup, Coder injects the user's SSH key into `~/authorized_keys` inside
5552
your environment to facilitate authentication with OpenSSH. For the best
56-
experience, add the following to your `/etc/ssh/sshd_config`
57-
file inside your image:
53+
experience, add the following to your `/etc/ssh/sshd_config` file inside your
54+
image:
5855

5956
```text
6057
PermitUserEnvironment yes

0 commit comments

Comments
 (0)