mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 08:44:28 +01:00
SSH can be root
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
8885463196
commit
fb8d683f9f
@ -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.
|
The default port for ssh/rsync is is 2222.
|
||||||
|
|
||||||
|
You can access to the server with:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ssh -p 2222 admin@bensuperpc.org
|
||||||
|
```
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
|
|
||||||
- [Wordpress](https://wordpress.org/)
|
- [Wordpress](https://wordpress.org/)
|
||||||
|
@ -11,8 +11,8 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./openssh/env/openssh.env
|
- ./openssh/env/openssh.env
|
||||||
environment:
|
environment:
|
||||||
- PUID=${PUID:-1000}
|
- PUID=0
|
||||||
- PGID=${PGID:-1000}
|
- PGID=0
|
||||||
volumes:
|
volumes:
|
||||||
- openssh_config:/config
|
- openssh_config:/config
|
||||||
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
||||||
|
6
infrastructure/openssh/env/openssh.env
vendored
6
infrastructure/openssh/env/openssh.env
vendored
@ -1,15 +1,15 @@
|
|||||||
TZ=Etc/UTC
|
TZ=Etc/UTC
|
||||||
SUDO_ACCESS=false
|
SUDO_ACCESS=true
|
||||||
PASSWORD_ACCESS=false
|
PASSWORD_ACCESS=false
|
||||||
DOCKER_MODS=linuxserver/mods:openssh-server-rsync
|
DOCKER_MODS=linuxserver/mods:openssh-server-rsync
|
||||||
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
|
#PUBLIC_KEY_URL=https://github.com/bensuperpc.keys
|
||||||
PUBLIC_KEY_DIR=/authorized_ssh_keys
|
PUBLIC_KEY_DIR=/authorized_ssh_keys
|
||||||
USER_NAME=bensuperpc
|
USER_NAME=admin
|
||||||
|
USER_PASSWORD=rdUwf36C11PLmpU9Lvq7tP5pfFBKAuCh
|
||||||
|
|
||||||
#PUBLIC_KEY=yourpublickey
|
#PUBLIC_KEY=yourpublickey
|
||||||
#PUBLIC_KEY_FILE=/path/to/file
|
#PUBLIC_KEY_FILE=/path/to/file
|
||||||
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
|
#PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys
|
||||||
#PUBLIC_KEY_URL=https://github.com/username.keys
|
#PUBLIC_KEY_URL=https://github.com/username.keys
|
||||||
#USER_PASSWORD=password
|
|
||||||
#USER_PASSWORD_FILE=/path/to/file
|
#USER_PASSWORD_FILE=/path/to/file
|
||||||
#LOG_STDOUT=
|
#LOG_STDOUT=
|
Loading…
Reference in New Issue
Block a user