You want to configure Tor to use an upstream proxy.
Tor Button/Onion Menu -> Network Settings -> Tick 'This computer needs to use a local proxy to access the Internet'
- Proxy Type:
SOCKS5
- Address:
127.0.0.1
- Port: Enter the port number you set for
-D
here
- Username and Password: Leave blank
Select "OK".
Now the Tor that Tor Browser launches will connect through the SOCKS proxy provided by SSH to reach the Tor Network.
Your ISP may still be able to see that you're using Tor if they are looking hard enough.
It's not necessarily insecure but it's potentially adding more places where an adversary could get information about traffic between you and your guard from.
As a general rule: mo' hops, mo' problems.