登入 (Log in AWS with Jupyter and Tensorboard port liked)
You can create a shell script to execute the command below. Please replace “AWS_AMI.pem”, “IP”, “region” with your own.
ssh -N -L localhost:8888:localhost:8888 -i “AWS_AMI.pem” ubuntu@”IP.region”.compute.amazonaws.com &
ssh -N -L localhost:6006:localhost:6006 -i “AWS_AMI.pem” ubuntu@”IP.region”.compute.amazonaws.com &
ssh -i “AWS_AMI.pem” ubuntu@”IP.region”.compute.amazonaws.com
啟動tmux
tmux
啟動 Jupyter notebook
xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR" jupyter notebook --no-browser
啟動 Tensorboard
tensorboard --logdir ./