ipython / ipython/ipython

Tunneling to remote kernel on a server with two-factor authentication

Open
#10,934 10 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Python
Stars
16.8k
Forks
4.5k
Avg merge
1d 2h
Merged PRs (30d)
6

Description

I'm following the guide in [https://github.com/ipython/ipython/wiki/Cookbook:-Connecting-to-a-remote-kernel-via-ssh](https://github.com/ipython/ipython/wiki/Cookbook:-Connecting-to-a-remote-kernel-via-ssh) to connect to a remote jupyter kernel.

However, my server has two-factor authentication. So I get stuck at the step: `jupyter console --existing ./kernel-1234.json --ssh server`. I can set up the tunnels manually and proceed from there without the `--ssh server` flag.

So, I was wondering if it would be possible to make provisions for two-factor authentication while tunneling with the `--ssh` flag? It would involve prompting users for tokens when ssh connections are made.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.