One hop ssh tunneling
ssh -NL 127.0.0.1:8888:127.0.0.1:8888 final_host
Two hop ssh tunneling (e.g. Jupyter)
ssh -NL 127.0.0.1:8888:127.0.0.1:8888 intermediate_host -t ssh -NL 127.0.0.1:8888:127.0.0.1:8888 final_host
Then, access the final_host by http://127.0.0.1:8888 (not localhost).