Skip to content

Instantly share code, notes, and snippets.

@kittinan
Last active August 17, 2021 14:34
Show Gist options
  • Save kittinan/e6ca95c47bf229219eb1b03fdcb99e65 to your computer and use it in GitHub Desktop.
Save kittinan/e6ca95c47bf229219eb1b03fdcb99e65 to your computer and use it in GitHub Desktop.
ssh tunnel to access jupyter notebook server

Server

  • run jupyter notebook
jupyter notebook
  • do not forget check ssh server config /etc/ssh/sshd_config
AllowTcpForwarding yes

Client

  • Local Port Forwarding
ssh -p SSH_PORT -L 8888:localhost:8888 username@host-domain
  • with tensorboard
ssh -p SSH_PORT -L 8888:localhost:8888 -L 6006:localhost:6006 username@host-domain
  • copy url with login token from server then access on client browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment