3
$\begingroup$

I'm using Mathematica 12.3 on Windows 11. I'd like to connect to a remote kernel running on Debian Linux, which I access using a VPN. I set up a remote kernel for launch on remote machine, enter the IP address of the remote machine as the machine name, my login, and "wolfram" as the remote program. Setting this new remote kernel as the notebook's kernel, I try to execute "2 + 2" in the front end, I get the error message

SSH's connection for kernel 'xxxKernel' was unexpectedly terminated. Error code = 103.

It does not even request a password.

I have no trouble connecting to the remote server using ssh, or running "wolfram" on it. I can also open a remote Python kernel in a local Jupyter session.

Does anyone have a solution to this problem?

Thank you, Mark

$\endgroup$

1 Answer 1

2
$\begingroup$

The problem was solved after I did the following two things:

  1. Setting up passwordless SSH authentification (e.g., by following https://www.strongdm.com/blog/ssh-passwordless-login)
  2. Modifying the "Shell command to launch kernel" in the Mathematica kernel dialog (following How do you use ssh-keys instead of a password to run a remote-kernel over ssh?) to: ssh user@hostname "math -mathlink -LinkMode Connect -LinkProtocol TCPIP -LinkName `linkname` -LinkHost `ipaddress`"

Who knows, maybe step 1 wasn't really necessary.

$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.