Files
ssh/docker/ssh-server/README.md
T
marcio.fernandes 9d0e7de59e
/ ssh-server-container-build-push (push) Successful in 16s
/ ssh-client-container-build-push (push) Successful in 15s
feature/new-oci-deployment (#2)
Co-authored-by: Márcio Fernandes <marcio.fernandes@outlook.pt>
Reviewed-on: #2
2026-05-03 01:17:47 +00:00

51 lines
972 B
Markdown

# 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 oci.limbosolutions.com/public/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 \
oci.limbosolutions.com/public/ssh-server:latest
```
## docker
``` bash
docker pull oci.limbosolutions.com/public/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 \
oci.limbosolutions.com/public/ssh-server:latest
```
## dev and testing
Using vscode, check .vscode folder build and debug tasks as launch settings.