Run these commands in your local machine:
ssh -fNL 3309:localhost:3308 user@remote
ssh -fNL 8788:localhost:8787 user@remote
Now you can access rstudio server and jupyter notebook in browser via http://remote:8788
and http://remote:3309
Run these commands in your local machine:
ssh -fNL 3309:localhost:3308 user@remote
ssh -fNL 8788:localhost:8787 user@remote
Now you can access rstudio server and jupyter notebook in browser via http://remote:8788
and http://remote:3309