From fe905f6cee469c59f9b190d329ff0c1bb8f013f7 Mon Sep 17 00:00:00 2001 From: <> Date: Sun, 12 Feb 2023 07:26:12 +0000 Subject: [PATCH] Deployed 1ff354a4 with MkDocs version: 1.4.2 --- images/docker-openssh-server/index.html | 6 +++--- search/search_index.json | 2 +- sitemap.xml.gz | Bin 1566 -> 1566 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/images/docker-openssh-server/index.html b/images/docker-openssh-server/index.html index 8c0ae4fee6..6911ad05a3 100644 --- a/images/docker-openssh-server/index.html +++ b/images/docker-openssh-server/index.html @@ -9,7 +9,7 @@ environment: - PUID=1000 - PGID=1000 - - TZ=Europe/London + - TZ=Etc/UTC - PUBLIC_KEY=yourpublickey #optional - PUBLIC_KEY_FILE=/path/to/file #optional - PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys #optional @@ -29,7 +29,7 @@ --hostname=openssh-server `#optional` \ -e PUID=1000 \ -e PGID=1000 \ - -e TZ=Europe/London \ + -e TZ=Etc/UTC \ -e PUBLIC_KEY=yourpublickey `#optional` \ -e PUBLIC_KEY_FILE=/path/to/file `#optional` \ -e PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys `#optional` \ @@ -43,7 +43,7 @@ -v /path/to/appdata/config:/config \ --restart unless-stopped \ lscr.io/linuxserver/openssh-server:latest -
Docker images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal>
respectively. For example, -p 8080:80
would expose port 80
from inside the container to be accessible from the host's IP on port 8080
outside the container.
-p
)Parameter | Function |
---|---|
2222 | ssh port |
-e
)Env | Function |
---|---|
PUID=1000 | for UserID - see below for explanation |
PGID=1000 | for GroupID - see below for explanation |
TZ=Europe/London | Specify a timezone to use EG Europe/London |
PUBLIC_KEY=yourpublickey | Optional ssh public key, which will automatically be added to authorized_keys. |
PUBLIC_KEY_FILE=/path/to/file | Optionally specify a file containing the public key (works with docker secrets). |
PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys | Optionally specify a directory containing the public keys (works with docker secrets). |
PUBLIC_KEY_URL=https://github.com/username.keys | Optionally specify a URL containing the public key. |
SUDO_ACCESS=false | Set to true to allow linuxserver.io , the ssh user, sudo access. Without USER_PASSWORD set, this will allow passwordless sudo access. |
PASSWORD_ACCESS=false | Set to true to allow user/password ssh access. You will want to set USER_PASSWORD or USER_PASSWORD_FILE as well. |
USER_PASSWORD=password | Optionally set a sudo password for linuxserver.io , the ssh user. If this or USER_PASSWORD_FILE are not set but SUDO_ACCESS is set to true, the user will have passwordless sudo access. |
USER_PASSWORD_FILE=/path/to/file | Optionally specify a file that contains the password. This setting supersedes the USER_PASSWORD option (works with docker secrets). |
USER_NAME=linuxserver.io | Optionally specify a user name (Default:linuxserver.io ) |
-v
)Volume | Function |
---|---|
/config | Contains all relevant configuration files. |
Parameter | Function |
---|---|
--hostname= | Optionally the hostname can be defined. |
You can set any environment variable from a file by using a special prepend FILE__
.
As an example:
-e FILE__PASSWORD=/run/secrets/mysecretpassword
+
Docker images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal>
respectively. For example, -p 8080:80
would expose port 80
from inside the container to be accessible from the host's IP on port 8080
outside the container.
-p
)Parameter | Function |
---|---|
2222 | ssh port |
-e
)Env | Function |
---|---|
PUID=1000 | for UserID - see below for explanation |
PGID=1000 | for GroupID - see below for explanation |
TZ=Etc/UTC | specify a timezone to use, see this list. |
PUBLIC_KEY=yourpublickey | Optional ssh public key, which will automatically be added to authorized_keys. |
PUBLIC_KEY_FILE=/path/to/file | Optionally specify a file containing the public key (works with docker secrets). |
PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys | Optionally specify a directory containing the public keys (works with docker secrets). |
PUBLIC_KEY_URL=https://github.com/username.keys | Optionally specify a URL containing the public key. |
SUDO_ACCESS=false | Set to true to allow linuxserver.io , the ssh user, sudo access. Without USER_PASSWORD set, this will allow passwordless sudo access. |
PASSWORD_ACCESS=false | Set to true to allow user/password ssh access. You will want to set USER_PASSWORD or USER_PASSWORD_FILE as well. |
USER_PASSWORD=password | Optionally set a sudo password for linuxserver.io , the ssh user. If this or USER_PASSWORD_FILE are not set but SUDO_ACCESS is set to true, the user will have passwordless sudo access. |
USER_PASSWORD_FILE=/path/to/file | Optionally specify a file that contains the password. This setting supersedes the USER_PASSWORD option (works with docker secrets). |
USER_NAME=linuxserver.io | Optionally specify a user name (Default:linuxserver.io ) |
-v
)Volume | Function |
---|---|
/config | Contains all relevant configuration files. |
Parameter | Function |
---|---|
--hostname= | Optionally the hostname can be defined. |
You can set any environment variable from a file by using a special prepend FILE__
.
As an example:
-e FILE__PASSWORD=/run/secrets/mysecretpassword
Will set the environment variable PASSWORD
based on the contents of the /run/secrets/mysecretpassword
file.
For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022
setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.
When using volumes (-v
flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID
and group PGID
.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000
and PGID=1000
, to find yours use id user
as below:
$ id username
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
docker exec -it openssh-server /bin/bash
docker logs -f openssh-server
docker inspect -f '{{ index .Config.Labels "build_version" }}' openssh-server
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/openssh-server:latest