question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect to kernel dialog needs to be clearer that either the SSH keyfile *or* the password is required

See original GitHub issue

Problem Description

Several users have stated that the connect to kernel dialog is confusing when connecting to a remote kernel, because it isn’t clear that either a SSH keyfile or a password is required, not both—and looking at it now, I can see why.

image

User Reports

In particular, on our Gitter, a user said:

Hi, I am trying to connect Spyder on my PC (running within Anaconda) to a remote ipython kernel on an AWS EC2 AMI and I’m struggling. I followed the instructions here: http://docs.spyder-ide.org/ipythonconsole.html#connect-to-an-external-kernel and the kernel is running fine on the EC2 AMI and I have the JSON file on my PC but I’m not sure what to enter in the ‘Connect to an existing kernel’ box. I add the path to the JSON file in the ‘Connection info’ box. I check the ‘This is a remote kernel’ box. I enter my EC2 host: ‘ec2-user@blah-blah:8888’ and then get stuck on the SSH key and password boxes. When I connect to the EC2 AMI from MobaXterm I use an imported Putty key (.ppk) file (and don’t use a password) whereas the Spyder dialogue box is asking for a .pem file. Do I need the original AWS .pem key?

And on spyder-ide/spyder-docs#78 , @jsh9 said:

It might also be worth noting (either in Spyder’s UI, or in the documentation) that the “ssh key” field is optional. I spent quite some time googling what ssh key file I should provide to no avail. Other users may run into the same confusion.

Proposed Solutions

I’ll clarify it in the docs as part of spyder-ide/spyder-dcos#78 , but it needs to be clearer in the UI too.

One possibility would be including the text “Or” between the two fields and grouping them in some way, e.g.

Host name: ____________________________

SSH Key: _______________________________ Or Password: ______________________________

Alternatively, we could just include a line of explanatory text above the two fields saying only one of the two are required, e.g.

Host name: ____________________________ Only one of the following is required: SSH Key: _______________________________ Password: ______________________________

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Sep 11, 2018

@ccordoba12 Thoughts?

Sure, we can do this for Spyder 4.

I can even think about if Spyder could itself start a remote kernel if given the ssh credentials

The Jupyter team has done some experimental work to make this a reality:

https://github.com/takluyver/jupyter_ssh_kernels

However, I don’t know when this could be available for general consumption.

1reaction
ccordoba12commented, Sep 9, 2018

Alternatively, we could just include a line of explanatory text above the two fields saying only one of the two are required

I like this option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up SSH public key authentication to connect to a remote ...
Therefore, you must either be able to log into the remote system with an established account username and password/passphrase, or have an ...
Read more >
python - How and where to get json and pem file for remote ...
You don't need a pem file if you simply introduce your ssh password there. Where do I get the kernel-*.json file for Connection...
Read more >
Password dialog appears when SSH private key ...
First, run ssh-add -K and check whether this fixes your problem. If not:.
Read more >
IPython Console - Spyder 4
Then, enter either username 's password on the remote machine, or browse to an SSH keyfile (typically in the .ssh directory in your...
Read more >
SLES 15 SP1 | Deployment Guide | Installation Steps
You need to have a registration code for the respective product. In this document it is assumed you have chosen SUSE Linux Enterprise...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found