# Traefik v2 : over FTP/SSH

**URL:** <https://community.traefik.io/t/traefik-v2-over-ftp-ssh/8652>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [November 19, 2020, 10:46am UTC](https://community.traefik.io/t/traefik-v2-over-ftp-ssh/8652 "2020-11-19T10:46:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent1](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vincent1](https://community.traefik.io/u/vincent1)\
**Post date:** [November 19, 2020, 10:46am UTC](https://community.traefik.io/t/traefik-v2-over-ftp-ssh/8652/1 "2020-11-19T10:46:01Z")

</div>

Hi,  
I try to make a traefik conf to serve dockerised ftp/sftp ssh.  
I did not understand why I can do that on V2.

I search a good and fonctionnel exemple I trie withe open-ssh  
[https://github.com/linuxserver/docker-openssh-server](https://github.com/linuxserver/docker-openssh-server)  
I obtain :  
`ssh: Could not resolve hostname mydomain.fr:2222: nodename nor servname provided, or not known`

my base docker-compose.yaml :

```auto
 expose:
      - "2222"
    environment:
        #... see doker-image conf exemple
    volumes:
      - ./download:/home/username
      - ./log/:/var/log/
    labels:
      - "traefik.http.routers.ftp.rule=Host(`mydomaine.fr`)"
      - "traefik.tcp.routers.ftp.service=ftp-service"
      - "traefik.tcp.services.ftp-service.loadbalancer.server.port=2222"
      - "traefik.tcp.routers.ftp.entrypoints=ssh"
      - "traefik.tcp.routers.ftp.rule=HostSNI(`*`)"
    networks:
      - traefik

```

Thanks for your help

---

<div class="post-metadata">

**Author:** ![belgian\_style](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@belgian\_style](https://community.traefik.io/u/belgian_style)\
**Post date:** [January 6, 2022, 5:47pm UTC](https://community.traefik.io/t/traefik-v2-over-ftp-ssh/8652/2 "2022-01-06T17:47:02Z")

</div>

Did you ever get this working? I’m attempting to do something similar.
