I don't believe this is currently possible in FME.
One potential option from this community idea: Support database connections over SSH, is to make a local SSH tunnel to the database, and then have FME connect via that tunnel, but I don't believe there is a way to currently create a tunnel in FME.
Do you mind sharing a bit more details about your use case?