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
{{ message }}
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+37-17Lines changed: 37 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ Includes public key authentication, Automated password generation and supports c
7
7
8
8
## Overview & links
9
9
10
-
The latest CentOS-6 / CentOS-7 based releases can be pulled from the `centos-6` / `centos-7` Docker tags respectively. For production use it is recommended to select a specific release tag - the convention is `centos-6-1.9.0` OR `1.9.0` for the [1.9.0](https://github.com/jdeathe/centos-ssh/tree/1.9.0) release tag and `centos-7-2.4.0` OR `2.4.0` for the [2.4.0](https://github.com/jdeathe/centos-ssh/tree/2.4.0) release tag.
10
+
The latest CentOS-6 / CentOS-7 based releases can be pulled from the `centos-6` / `centos-7` Docker tags respectively. For production use it is recommended to select a specific release tag - the convention is `centos-6-1.9.1` OR `1.9.1` for the [1.9.1](https://github.com/jdeathe/centos-ssh/tree/1.9.1) release tag and `centos-7-2.4.1` OR `2.4.1` for the [2.4.1](https://github.com/jdeathe/centos-ssh/tree/2.4.1) release tag.
The Dockerfile can be used to build a base image that is the bases for several other docker images.
18
18
@@ -105,10 +105,10 @@ $ docker run \
105
105
--rm \
106
106
--privileged \
107
107
--volume /:/media/root \
108
-
jdeathe/centos-ssh:2.4.0 \
108
+
jdeathe/centos-ssh:2.4.1 \
109
109
/usr/sbin/scmi install \
110
110
--chroot=/media/root \
111
-
--tag=2.4.0 \
111
+
--tag=2.4.1 \
112
112
--name=ssh.pool-1.1.1 \
113
113
--setopt="--volume {{NAME}}.config-ssh:/etc/ssh"
114
114
```
@@ -122,10 +122,10 @@ $ docker run \
122
122
--rm \
123
123
--privileged \
124
124
--volume /:/media/root \
125
-
jdeathe/centos-ssh:2.4.0 \
125
+
jdeathe/centos-ssh:2.4.1 \
126
126
/usr/sbin/scmi uninstall \
127
127
--chroot=/media/root \
128
-
--tag=2.4.0 \
128
+
--tag=2.4.1 \
129
129
--name=ssh.pool-1.1.1 \
130
130
--setopt="--volume {{NAME}}.config-ssh:/etc/ssh"
131
131
```
@@ -139,10 +139,10 @@ $ docker run \
139
139
--rm \
140
140
--privileged \
141
141
--volume /:/media/root \
142
-
jdeathe/centos-ssh:2.4.0 \
142
+
jdeathe/centos-ssh:2.4.1 \
143
143
/usr/sbin/scmi install \
144
144
--chroot=/media/root \
145
-
--tag=2.4.0 \
145
+
--tag=2.4.1 \
146
146
--name=ssh.pool-1.1.1 \
147
147
--manager=systemd \
148
148
--register \
@@ -164,7 +164,7 @@ Since release tags `1.7.2` / `2.1.2` the install template has been added to the
164
164
_NOTE:_ A prerequisite of the following examples is that the image has been pulled (or loaded from the release package).
165
165
166
166
```
167
-
$ docker pull jdeathe/centos-ssh:2.4.0
167
+
$ docker pull jdeathe/centos-ssh:2.4.1
168
168
```
169
169
170
170
To see detailed information about the image run `scmi` with the `--info` option. To see all available `scmi` options run with the `--help` option.
@@ -173,7 +173,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
173
173
$ eval "sudo -E $(
174
174
docker inspect \
175
175
-f "{{.ContainerConfig.Labels.install}}" \
176
-
jdeathe/centos-ssh:2.4.0
176
+
jdeathe/centos-ssh:2.4.1
177
177
) --info"
178
178
```
179
179
@@ -183,7 +183,7 @@ To perform an installation using the docker name `ssh.pool-1.2.1` simply use the
183
183
$ eval "sudo -E $(
184
184
docker inspect \
185
185
-f "{{.ContainerConfig.Labels.install}}" \
186
-
jdeathe/centos-ssh:2.4.0
186
+
jdeathe/centos-ssh:2.4.1
187
187
) --name=ssh.pool-1.2.1"
188
188
```
189
189
@@ -193,7 +193,7 @@ To uninstall use the *same command* that was used to install but with the `unins
193
193
$ eval "sudo -E $(
194
194
docker inspect \
195
195
-f "{{.ContainerConfig.Labels.uninstall}}" \
196
-
jdeathe/centos-ssh:2.4.0
196
+
jdeathe/centos-ssh:2.4.1
197
197
) --name=ssh.pool-1.2.1"
198
198
```
199
199
@@ -206,7 +206,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
206
206
```
207
207
$ sudo -E atomic install \
208
208
-n ssh.pool-1.3.1 \
209
-
jdeathe/centos-ssh:2.4.0 \
209
+
jdeathe/centos-ssh:2.4.1 \
210
210
--info
211
211
```
212
212
@@ -215,14 +215,14 @@ To perform an installation using the docker name `ssh.pool-1.3.1` simply use the
215
215
```
216
216
$ sudo -E atomic install \
217
217
-n ssh.pool-1.3.1 \
218
-
jdeathe/centos-ssh:2.4.0
218
+
jdeathe/centos-ssh:2.4.1
219
219
```
220
220
221
221
Alternatively, you could use the `scmi` options `--name` or `-n` for naming the container.
222
222
223
223
```
224
224
$ sudo -E atomic install \
225
-
jdeathe/centos-ssh:2.4.0 \
225
+
jdeathe/centos-ssh:2.4.1 \
226
226
--name ssh.pool-1.3.1
227
227
```
228
228
@@ -231,7 +231,7 @@ To uninstall use the *same command* that was used to install but with the `unins
231
231
```
232
232
$ sudo -E atomic uninstall \
233
233
-n ssh.pool-1.3.1 \
234
-
jdeathe/centos-ssh:2.4.0
234
+
jdeathe/centos-ssh:2.4.1
235
235
```
236
236
237
237
#### Using environment variables
@@ -359,6 +359,16 @@ The SSH user's environment is reset by default meaning that the Docker environme
359
359
...
360
360
```
361
361
362
+
##### SSH_PASSWORD_AUTHENTICATION
363
+
364
+
The SSH password authentication is disabled by default; allowing access by public/private key based authentication only. This is the recommended configuration however it may be necessary to allow password based access if you have client's that are unable to use key based authentication. Use `SSH_PASSWORD_AUTHENTICATION` to enable password authentication.
365
+
366
+
```
367
+
...
368
+
--env "SSH_PASSWORD_AUTHENTICATION=true" \
369
+
...
370
+
```
371
+
362
372
##### SSH_SUDO
363
373
364
374
On first run the SSH user is created with a the sudo rule `ALL=(ALL) ALL` which allows the user to run all commands but a password is required. If you want to limit the access to specific commands or allow sudo without a password prompt `SSH_SUDO` can be used.
@@ -369,6 +379,16 @@ On first run the SSH user is created with a the sudo rule `ALL=(ALL) ALL` which
369
379
...
370
380
```
371
381
382
+
##### SSH_TIMEZONE
383
+
384
+
If you require a locale based system time zone `SSH_TIMEZONE` can be used when running the container.
385
+
386
+
```
387
+
...
388
+
--env "SSH_TIMEZONE=Europe/London" \
389
+
...
390
+
```
391
+
372
392
##### SSH_USER
373
393
374
394
On first run the SSH user is created with the default username of "app-admin". If you require an alternative username `SSH_USER` can be used when running the container.
0 commit comments