SSH can be root

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-09-16 20:28:15 +02:00
parent 8885463196
commit fb8d683f9f
3 changed files with 11 additions and 5 deletions

View File

@ -254,6 +254,12 @@ This infrastructure uses docker volumes to store data, all configuration/data fo
The default port for ssh/rsync is is 2222.
You can access to the server with:
```sh
ssh -p 2222 admin@bensuperpc.org
```
## Sources
- [Wordpress](https://wordpress.org/)

View File

@ -11,8 +11,8 @@ services:
env_file:
- ./openssh/env/openssh.env
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- PUID=0
- PGID=0
volumes:
- openssh_config:/config
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro

View File

@ -1,15 +1,15 @@
TZ=Etc/UTC
SUDO_ACCESS=false
SUDO_ACCESS=true
PASSWORD_ACCESS=false
DOCKER_MODS=linuxserver/mods:openssh-server-rsync
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
PUBLIC_KEY_DIR=/authorized_ssh_keys
USER_NAME=bensuperpc
USER_NAME=admin
USER_PASSWORD=rdUwf36C11PLmpU9Lvq7tP5pfFBKAuCh
#PUBLIC_KEY=yourpublickey
#PUBLIC_KEY_FILE=/path/to/file
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
#PUBLIC_KEY_URL=https://github.com/username.keys
#USER_PASSWORD=password
#USER_PASSWORD_FILE=/path/to/file
#LOG_STDOUT=