feature/ssh-server (#1)
Co-authored-by: Márcio Fernandes <marcio.fernandes@outlook.pt> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
50
docker/ssh-server/README.md
Normal file
50
docker/ssh-server/README.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# ssh-server
|
||||
|
||||
## config file example
|
||||
|
||||
``` yaml
|
||||
users:
|
||||
- username: xx
|
||||
password: "123456"
|
||||
public_keys: ## array with public keys
|
||||
- "ssh-ed25519 ssdfdsxvxcsxdfrer"
|
||||
uid: 1002
|
||||
server:
|
||||
options:
|
||||
PermitRootLogin: "no"
|
||||
PasswordAuthentication: "no"
|
||||
```
|
||||
|
||||
## Podman
|
||||
|
||||
``` bash
|
||||
podman pull git.limbosolutions.com/kb/ssh-server:latest
|
||||
|
||||
podman container run \
|
||||
-p 2222:22 \
|
||||
-p 5678:5678 \
|
||||
-v ./local/config:/etc/app/config \
|
||||
-v ./local/server-certs:/etc/ssh/certs \
|
||||
-v ./local/home:/home \
|
||||
git.limbosolutions.com/kb/ssh-server:latest
|
||||
|
||||
```
|
||||
|
||||
## docker
|
||||
|
||||
``` bash
|
||||
docker pull git.limbosolutions.com/kb/ssh-server:latest
|
||||
|
||||
docker container run \
|
||||
-p 2222:22 \
|
||||
-p 5678:5678 \
|
||||
-v ./local/config:/etc/app/config \
|
||||
-v ./local/server-certs:/etc/ssh/certs \
|
||||
-v ./local/home:/home \
|
||||
git.limbosolutions.com/kb/ssh-server:latest
|
||||
|
||||
```
|
||||
|
||||
## dev and testing
|
||||
|
||||
Using vscode, check .vscode folder build and debug tasks as launch settings.
|
||||
Reference in New Issue
Block a user