Connection to the SDumont¶
This notebook is available at: http://github.com/efurlanm/msc22/blob/main/docs-src/notebooks/connect.ipynb
- Don't forget to turn on the VPN first, using the system's network manager
Connect:
In [1]:
Copied!
%%bash
ssh -Nf sd
ssh -T sd <<'EOF'
hostname
module load anaconda3
source /scratch/app/anaconda3/2020.11/etc/profile.d/conda.sh
conda activate --stack /scratch${HOME#/prj}/env01
syncthing --no-browser --gui-address=0.0.0.0:28863 > ~/28863.log 2>&1 &
cd ~/Sync
jupyter-lab --no-browser --port=35655 --ip=0.0.0.0 --NotebookApp.token="" > ~/35655.log 2>&1 &
EOF
ssh -NfTL 8385:localhost:28863 sd
ssh -NfTL 8889:localhost:35655 sd
%%bash
ssh -Nf sd
ssh -T sd <<'EOF'
hostname
module load anaconda3
source /scratch/app/anaconda3/2020.11/etc/profile.d/conda.sh
conda activate --stack /scratch${HOME#/prj}/env01
syncthing --no-browser --gui-address=0.0.0.0:28863 > ~/28863.log 2>&1 &
cd ~/Sync
jupyter-lab --no-browser --port=35655 --ip=0.0.0.0 --NotebookApp.token="" > ~/35655.log 2>&1 &
EOF
ssh -NfTL 8385:localhost:28863 sd
ssh -NfTL 8889:localhost:35655 sd
sdumont14
Access to JL and ST is done using the web browser and the addresses:
Disconnect:
In [2]:
Copied!
%%bash
ssh sd 'pkill -u ${USER} -f syncthing'
ssh sd 'pkill -u ${USER} -f jupyter'
ssh -O exit sd
pkill -f 8385:
pkill -f 8889:
%%bash
ssh sd 'pkill -u ${USER} -f syncthing'
ssh sd 'pkill -u ${USER} -f jupyter'
ssh -O exit sd
pkill -f 8385:
pkill -f 8889:
- Don't forget to turn off the VPN, using the system's network manager