Connect via SSH to Ubuntu container at Synology

Why do you really want to SSH directly into the container? If you can access the host, you can enter the container using docker exec. Never install SSH in a container unless it is really necessary, which usually is not.

See SSH to container using host SSH service

If you are the only one who uses Docker on that machine, you can also use docker exec on your local machine after settig an SSH Docker context. See How do you create a context for a remote tls daemon? - #2 by rimelek