From 4441b79b1eb2a8312b2154233c064024fe640894 Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Tue, 4 Oct 2022 09:23:39 +1300 Subject: [PATCH] Disable SSH service by default I think I am going to remove this in a future update. For now I will just disable it by default and remove it from any templates. --- Dockerfile | 3 +-- Dockerfile.arch | 3 +-- README.md | 3 +-- docs/unraid.md | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index d11d949..be74748 100644 --- a/Dockerfile +++ b/Dockerfile @@ -473,12 +473,11 @@ ENV \ # Configure required ports ENV \ - PORT_SSH="2222" \ + PORT_SSH="" \ PORT_NOVNC_WEB="8083" \ NEKO_NAT1TO1="" # Expose the required ports -EXPOSE 2222 EXPOSE 8083 # Set entrypoint diff --git a/Dockerfile.arch b/Dockerfile.arch index 6b2f050..46d832d 100644 --- a/Dockerfile.arch +++ b/Dockerfile.arch @@ -415,11 +415,10 @@ ENV \ # Configure required ports ENV \ - PORT_SSH="2222" \ + PORT_SSH="" \ PORT_NOVNC_WEB="8083" # Expose the required ports -EXPOSE 2222 EXPOSE 8083 # Set entrypoint diff --git a/README.md b/README.md index f66b169..a2c5e79 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ Play your games in the browser with audio. Connect another device and use it wit - AMD GPU support - Full video/audio noVNC web access to a Xfce4 Desktop - Root access -- SSH server for remote terminal access --- @@ -58,7 +57,7 @@ For a development environment, I have created a script in the devops directory. --- ## TODO: -- Lock SSH access to user only (remove root access) +- Remove SSH - Require user to enter password for sudo - Document how to run this container - Create docker-compose configuration diff --git a/docs/unraid.md b/docs/unraid.md index 63cc040..99bf324 100644 --- a/docs/unraid.md +++ b/docs/unraid.md @@ -49,10 +49,10 @@ Unraid's Linux kernel by default does not have the modules required to support c > __Warning__ > - > Be aware that, by default, this container requires at least 8083 and 2222 available for the WebUI and SSH to work. It will also require any ports that Steam requires for Steam Remote Play. + > Be aware that, by default, this container requires at least 8083 available for the WebUI to work. It will also require any ports that Steam requires for Steam Remote Play. You can override the default ports used by the container with these variables: - - PORT_SSH (Default: 2222) - PORT_NOVNC_WEB (Default: 8083) + - WEB_UI_MODE (Default: 'vnc' - Set to 'none' to disable the WebUI) 3. No server restart is required, however. Ensure that the **steam-headless** Docker container is recreated after installing the **uinput** plugin for it to be able to detect the newly added module.