feature/ssh-server #1
@@ -42,7 +42,7 @@ ENV CONFIGURATION=Production
|
|||||||
ENV DEBUG=False
|
ENV DEBUG=False
|
||||||
|
|
||||||
# Default command for production container
|
# Default command for production container
|
||||||
CMD ["python3", "/app/main.py"]
|
CMD ["python3", "-u", "/app/main.py"]
|
||||||
|
|
||||||
|
|
||||||
#EXPOSE 22
|
#EXPOSE 22
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ ENV CONFIGURATION=Debug
|
|||||||
ENV DEBUG=True
|
ENV DEBUG=True
|
||||||
|
|
||||||
# Default command for dev container
|
# Default command for dev container
|
||||||
CMD ["python3", "/app/main.py"]
|
CMD ["python3","-u", "/app/main.py"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,44 @@
|
|||||||
# ssh-server
|
# ssh-server
|
||||||
|
|
||||||
## dev and testing
|
## config file example
|
||||||
|
|
||||||
```bash
|
``` 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
|
## docker
|
||||||
podman container exec -it ssh-server-dev bash -
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
``` 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
|
## dev and testing
|
||||||
|
|
||||||
Using vscode, check .vscode folder build and debug tasks as launch settings.
|
Using vscode, check .vscode folder build and debug tasks as launch settings.
|
||||||
|
|||||||
Reference in New Issue
Block a user