19 votes
Accepted

remote kernel through SSH

Here's a solution that works quite well with me and a colleague of mine in my research group. I assume you have Mathematica installed on both your local and remote machine. The command ...
The Quantum Physicist's user avatar
6 votes
Accepted

Executing local functions remotely

If I understand correctly, you have some functions defined locally that are not defined on the remote machine. When you remote evaluate your expression, which includes these functions, the remote ...
Carl Woll's user avatar
  • 130k
6 votes
Accepted

MathLink: How to change the default listening IP address?

Use the undocumented LinkHost option, e.g.: LinkCreate[LinkProtocol -> "TCPIP", LinkHost -> "127.0.0.1"] yields: ...
sakra's user avatar
  • 5,100
6 votes
Accepted

Connecting Mathematica on Windows to a kernel running on WSL

It turns out that while figuring out the solution is hard (way too little documentation, and what documentation exists dates to around 2006), the solution itself is easy. As such I'm documenting the ...
linkhyrule5's user avatar
5 votes

remote kernel through SSH

Regarding The Quantum Physicist's answer, there might be a little problem for some macOS users who use macOS as remote machine. If you get the time out error message, it's very likely that the remote ...
webcpu's user avatar
  • 3,152
5 votes

gridMathematica on cluster with PBS Pro

Setting up Mathematica to work well on a cluster was painful for me. I don't know how to get it working on PBS, but you may find the following general information useful. Do look at the ...
Szabolcs's user avatar
  • 233k
5 votes
Accepted

Remote Raspberry Pi Kernel from 2nd Raspberry Pi Front End

It turns out that remote kernel through SSH was the most useful guide. Setting up the remote Kernels manually was more succsessful compared to using ...
Young's user avatar
  • 7,485
5 votes
Accepted

How to set up Wolfram Language cluster with only the command line interface

I was able to get this working and it was simpler than I thought. The Parallel Computing Tools documentation was very helpful (specifically here for manual launching of the remote kernels). Note: I ...
Sean Lynch's user avatar
  • 1,079
5 votes
Accepted

Direct Import Remote File via SSH without Copying in Windows

Since your know ssh, why not directly use linux commands like Import["!echo `ssh user@host 'cat /home/user/file.txt'`", "String"] You can ...
Acus's user avatar
  • 3,559
4 votes

Remote Kernel - Error = MLECONNECT

This solution is tested for M11.2 for macOS client and Linux server. Create a password-less ssh login. Generated a public and private ssh key on the local machine (mac) and then copy the public key ...
Karolis's user avatar
  • 1,639
4 votes

Is it possible to recover remote subkernels if Internet connection is lost?

I do not believe this to be possible. I suggest you do not use remote subkernels if your network connection is not stable. Instead, run everything remotely, including the master kernel. It would be ...
Szabolcs's user avatar
  • 233k
4 votes

How can I effectively achieve remote access to Mathematica output?

Let's assume you use Dropbox/iCloud, and one of these services is integrated both with the file system on your local computer, as well as the remote computer doing the computations. I'll assume ...
ktm's user avatar
  • 4,231
4 votes
Accepted

Launching remote kernel--increase timeout time

You can use SetSystemOptions to increase the timeout used upon launching remote kernels: SetSystemOptions["ParallelOptions" -> "MathLinkTimeout" -> 20.]
sakra's user avatar
  • 5,100
3 votes

Connecting notebook to remote kernel

Sorry this is not an answer but the text goes too long for the comment. There'a whole bunch of things that could go wrong with remote kernels in my experience. Basically FE starts remote kernel and ...
Pavel Perikov's user avatar
3 votes
Accepted

Tunnel a Mathematica command through SSH

I have figured out a work-around, that requires Mathematica 11.3 or later. In this version, there is a new command, RemoteRun[], that works like Run[] but on a remote server. If anyone knows a way of ...
a20's user avatar
  • 927
3 votes

How to connect to EC2?

sorry for answering so late but i just saw the question. Actually it is quite simple. Just go to evaluation>kernel configuration options add a new kernel and fill like this: replacing path/to/your/...
elbOlita's user avatar
  • 1,569
3 votes

Mathematica remote kernel on ubuntu

Duplicating the answer from here to make it easier to find. This solution is tested for M11.2 for macOS client and Linux server. Create a password-less ssh login. Generated a public and private ssh ...
Karolis's user avatar
  • 1,639
3 votes

How to copy some variables from one notebook to another using different kernel?

You could encode data into an Image: ...
Mr.Wizard's user avatar
  • 270k
3 votes
Accepted

How to copy some variables from one notebook to another using different kernel?

As a simple solution, you could use CloudPut, CloudGet and CloudObject. ...
Szabolcs's user avatar
  • 233k
3 votes
Accepted

How to let processes run after closing ssh connection

If this is how you are already doing things, let me know. But for me, running on a remote kernel means running in batch mode; no method of accessing a GUI, or using an interactive prompt is as ...
Jason B.'s user avatar
  • 67.3k
3 votes

Running remote kernel - free frontend license?

You could use Raspberry Pi as your free Mathematica frontend which uses your Mac/Linux as backend/server. (I haven't tried it on Windows) There is a limitation, the version numbers of Mathematica for ...
webcpu's user avatar
  • 3,152
3 votes

Remote Kernel - Error = MLECONNECT

tl;dr If you use macOS and there are spaces in the path to (or name of) the Mathematica app, remove those spaces! I believe that this error is shown when the process started by the Front End (that is ...
Szabolcs's user avatar
  • 233k
3 votes
Accepted

Running Mathematica on a Remote Machine (using frontend and ssh)

I just wanted to post a comment but I don't have enough reputation. I have been discussing this topic in a Wolfram Community post. I shared there my working solution (for the moment, I want to test it ...
edobld's user avatar
  • 66
2 votes

Remote Mathkernel: SSH encountered a networking error while launching kernel Error code = 1

Modified upon this answer I managed to connect to the remote kernels. The client laptop is running Mathematica 11.2 on Windows, and remote kernel Mathematica 11.2 on RHEL 7. Here is what I did: ...
Boson Bear's user avatar
2 votes
Accepted

How to use a remote windows laptop for NetTrain?

Ok, here's a file syncing service solution: Step 1: Get a Dropbox account and make two folders in your dropbox: 'to_run/' and 'finished/'. Step 2: Paste and run this in a notebook on your Windows ...
M.R.'s user avatar
  • 31.2k
2 votes

Execute .nb from command prompt on Windows 10

The NB files can't be used as input files for WolframScript, because they store interactive Wolfram System documents intented for use within the Notebook interface (...
Alexey Popkov's user avatar
1 vote
Accepted

Improving a Remote Wolfram Execution Function

The following ...
George's user avatar
  • 3,115
1 vote

How do I find open RemoteConnect Objects?

Odd that there's no RemoteConnections[] function like there is Processes[], Streams[], ...
b3m2a1's user avatar
  • 46.6k
1 vote

How do I launch a remote kernel on one Win 10 system from another Win 10 sys?

Finally, I've found a way to launch remote kernal in win10 like this: ...
Hallow_Juan's user avatar
1 vote

ParallelTable fail to distribute computation to local kernels and remote kernels

The method supportted by remote kernel through ssh is used to compute through remote kernel only and it's the usual way we need. I misunderstood it and the situation asked in the question is the right ...
Bettertomo's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible