For this purpose i like to recommend sshuttle.
If your ssh command would be: ssh [email protected]
Your sshuttle command is: sshuttle --dns -r [email protected] 0/0
After you run the sshuttle command check your ip on WhatIsMyIp
The best practice is to store your ssh login in the ssh config. The config alias can be used with sshuttle.
# ~/.ssh/config
Host eg
HostName 12.34.65.78
Port 2274
User test
IdentityFile ~/.ssh/test-id_rsa
Then simply use: sshuttle --dns -r eg 0/0