1
$\begingroup$

I'm trying to connect the front end on Mac OS (version 13.0) use a remote (also 13.0) kernel running on an Ubuntu machine. I've followed the basic steps here (https://reference.wolfram.com/language/howto/ConnectToARemoteKernel.html), but ended up with a similar issue as described in this post [1]. The error is

The kernel voyager failed to connect to the front end. (Error = MLECONNECT). You should try running the kernel connection outside the front end.

In [1] they mention using this 3rd party wolfram library which seems like not a very elegant solution since Mathematica is apparently designed to be used out of the box for remote dev. Since [1] was written almost 9 years ago I'm wondering if there is a simpler/modern solution for remote dev in WL.

Thanks

Edit:

any ideas how to set up the remote kernel to use the default ssh key instead of asking for authentication every time?

$\endgroup$
8
  • $\begingroup$ I would suggest to use some kind of vnc (for example tigerVNC tigervnc.org ). Then simply run vnc server in ubuntu, connect to it from MAC and feel like working with ubuntu desktop. This model have many benefits. For example, your can disconnect from remote computer at any time and connect again without breaking computations, etc. $\endgroup$
    – Acus
    Commented Apr 7, 2022 at 6:02
  • $\begingroup$ If you have access to a license for Wolfram Lightweight Grid Manager, that would be an easy to implement and quite a robust solution. $\endgroup$
    – rhermans
    Commented Apr 7, 2022 at 8:09
  • $\begingroup$ @rhermans I have wolfram desktop on my mac, but am using the free wolfram engine on my server $\endgroup$ Commented Apr 7, 2022 at 14:29
  • $\begingroup$ Don't do this, instead, launch a remote desktop with VNC $\endgroup$
    – user5601
    Commented Apr 19, 2022 at 17:03
  • $\begingroup$ @user5601 any reason why? I don't have root access to my machine so would prefer a simple ssh solution $\endgroup$ Commented Apr 19, 2022 at 18:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.