.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,24 +1,44 @@
|
||||
# ssh-server
|
||||
|
||||
## dev and testing
|
||||
## 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"
|
||||
```
|
||||
|
||||
## 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
|
||||
podman container exec -it ssh-server-dev bash -
|
||||
```
|
||||
## docker
|
||||
|
||||
``` bash
|
||||
ssh root@0.0.0.0 -p 2333
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user