Hi I’ve created a setup with the lscr.io/linuxserver/openssh-server:latest and a postgres image:
version: "3.5"
services:
openssh-server:
image: lscr.io/linuxserver/openssh-server:latest
container_name: openssh-server
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- PUBLIC_KEY=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDrRaurzBo7rvg5nftj5zCWOvpy7ynsJCpEt2XYWC9YudtQIL0OerEy3F6E5+kYFHUXUHvgNfzlSQTFoEnoUvChkBkrXTb7+xVtdI6U1MTbN1CRN1DpyRrN3JPyrZHYObkyLJ4WDJqlBfSGymQigAIcUym08X7hJFMNauJRIC1qImVV3uyTdPRFFx2hzTa7qy4aZnK0wEh7A+qREXu+rhFbEKHtI6ho3MxOhFomHqna09U0LVAuA0mlRC0hArcoiWBvhj/YTKWmixYjOQWfFQI0xgyHNh/sV9IZazhARgD8yppWodFl7s378PPuFobcyiRXtdXTZoQNiVAn8p1h704wRv1p2kCI8/k4T0xk8bTX92In8VV8EEIyyjxpapj20hVvt2eF72rnpZ7ENXtRzF/DodGQe8TX0hG0mkhfVLELrnOe3hiSHpU3VDr48F2JAqxxnNvWrlVd7EvcqO7M64ZHyZB2znrKRTllbly2PP+ywYj/k8uEbUmv46pwoWGnj30= emea\bauscmi@CMTCL0X61044103
- SUDO_ACCESS=false
- PASSWORD_ACCESS=false
- USER_NAME=sshtest
volumes:
- /path/to/appdata/config:/config
ports:
- 2222:2222
restart: unless-stopped
networks:
- ssh-network
db:
container_name: db
image: postgres
restart: always
ports:
- 5555:5432
environment:
POSTGRES_PASSWORD: db_pw
POSTGRES_USER: db_user
POSTGRES_DB: db_name
networks:
- ssh-network
adminer:
container_name: adminer
image: adminer
restart: always
ports:
- 1111:8080
networks:
- ssh-network
networks:
ssh-network:
driver: bridge
The containers are up and running and i can do a ping from the ssh container to db container or the webmin container (for the webmin a wget to the local port is also working)
But when i try to create a ssh connection with a port forward to the postgres or the webminer it’s not working:
my tunnel is so configured that for example local port is 8888 and the remote side is adminer:8080 - If i try to do a GET on 127.0.0.1:8888 there is no response
GET http://127.0.0.1:8888/
Error: read ECONNRESET
Of Course:
GET http://127.0.0.1:1111/
is working…
Thank you so much for your help and kind regards
Michael