Jupyter-Lab on Remote Service

Post date: Oct 13, 2019 2:59:17 PM

alias remote_port='nohup ssh -N -f -L localhost:8889:localhost:8889 usrname@remote_ip_address'

alias remotejupyter='nohup ssh -f usrname@remote_ip_address "cd $(basename '$(pwd)'); jupyter-lab --no-browser --port=8889"; remote_port'

alias stopremotejupyter='ssh usrname@remote_ip_address "pkill -u usrname jupyter-lab"'

# Notes:

# -- I have set passwordless access via ssh

# -- I put the workdir under the home directory on the remote server