feature/ssh-server #1

Merged
marcio.fernandes merged 21 commits from feature/ssh-server into main 2025-09-07 13:50:19 +00:00
4 changed files with 34 additions and 13 deletions
Showing only changes of commit 931008dbd1 - Show all commits

View File

@@ -1,2 +1,3 @@
# ssh

View File

@@ -42,7 +42,7 @@ ENV CONFIGURATION=Production
ENV DEBUG=False
# Default command for production container
CMD ["python3", "/app/main.py"]
CMD ["python3", "-u", "/app/main.py"]
#EXPOSE 22

View File

@@ -53,7 +53,7 @@ ENV CONFIGURATION=Debug
ENV DEBUG=True
# Default command for dev container
CMD ["python3", "/app/main.py"]
CMD ["python3","-u", "/app/main.py"]

View File

@@ -1,24 +1,44 @@
# ssh-server
## dev and testing
```bash
## config file example
``` yaml
users:
- username: xx
password: "123456"
public_keys: ## array with public keys
- "ssh-ed25519 AsdfsdsZ6NGdssdsdfDsvxYDRiH7hXW/asus"
uid: 1002
server:
options:
PermitRootLogin: "no"
PasswordAuthentication: "no"
```
```bash
podman container exec -it ssh-server-dev bash -
## Podman
``` bash
podman container run \
-p 2222:22 \
-p 5678:5678 \
-v ./local/config:/etc/app/config \
-v ./local/server-certs:/etc/ssh/certs \
git.limbosolutions.com/kb/ssh-server:latest
```
```bash
ssh root@0.0.0.0 -p 2333
## docker
``` bash
docker container run \
-p 2222:22 \
-p 5678:5678 \
-v ./local/config:/etc/app/config \
-v ./local/server-certs:/etc/ssh/certs \
git.limbosolutions.com/kb/ssh-server:latest
```
# ssh-server
## dev and testing
Using vscode, check .vscode folder build and debug tasks as launch settings.