I have a docker container which bind the port 2222:22. It's possible to connect using ssh -T sub.example.com -p 2222
.
I'm looking for a way to access ssh the container without specify the port number. I thought this could be done with a DNS record.
I set a DNS record SRV _ssh._tcp.sub 5 10022 sub.example.com
to my domain in the admin interface of my provider, this does not work.
Is there a way to do that?