How to Remote SSH a Virtual Machine?

I am now able to remotely and properly access the web pages of various applications on truenas via ddns and npm.
I now want to remotely log in to the VM via ssh, is this possible? It seems that npm doesn’t do much in this area.
I have assigned static ip 10.0.0.10 to my VM and I have tried forwarding port 2222 on my router, but what should I do next to access ssh publicly?

Sounds like you’ve done it, though I don’t know what relevance it is that anything’s in a VM. Forward a port to whatever port on the NAS is listening for SSH, and cross your fingers that nobody’s able to guess your password (or, as a mucb better and near-mandatory step, disable password authentication entirely).

I found the problem. Instead of forwarding the port from the route to the truenas address, I should have forwarded the port on the router directly to the ip address and port number of the VM. Although I had to set up the reverse proxy on the truenas npm.