feature/ssh-server (#1)
All checks were successful
/ ssh-client (push) Successful in 10s
/ ssh-server (push) Successful in 10s

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:
2025-09-07 13:50:18 +00:00
parent ea24e0e41a
commit ce1d7a749a
23 changed files with 727 additions and 10 deletions

View 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.