@@ -20,9 +20,7 @@ advanced functionality like X11 forwarding or `sshd_config` specifications.
2020If SSH is the primary mode of access to Coder for your users, consider
2121running 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
2826FROM ubuntu:20.04
@@ -41,20 +39,19 @@ RUN rm /etc/environment
4139RUN 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
5451At startup, Coder injects the user's SSH key into ` ~/authorized_keys ` inside
5552your 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
6057PermitUserEnvironment yes
0 commit comments