A Mathematica package that implements remote kernels launch through tunnelled SSH connections.
Copyright 2018 Hermès Bélusca-Maïto, under the GPL-2.0+ license.
This package attempts at solving the problem described in the "remote kernel through SSH" discussion, where the following constraints apply:
- both the local and the remote computer are behind a firewall,
- the SSH connection requires authentication via manual password entering, without using SSH keys,
- the code should be written in Wolfram Language.
The key point is to create an SSH tunnel with remote port forwardings.
This code is inspired from two sources:
- from the MathematicaSSHKernels package (see also the associated discussion: "Programmatic remote kernel creation via SSH"),
- and from the Tunnel package by Sascha Kratky (the historical version can be found here) that was mentioned in the "Remote Kernel - Error = MLECONNECT" discussion.
Download the SSHRemote.m
file and copy it into $UserBaseDirectory<>"\\Applications"
.
Alternatively, you can create a sub-directory named SSHRemote
under $UserBaseDirectory<>"\\Applications"
and copy the SSHRemote.m
file into it. You should then append the $UserBaseDirectory<>"\\Applications\\SSHRemote"
directory path to the $Path
definition in your $UserBaseDirectory<>"\\Kernel\\init.m"
file.
See the examples.nb
notebook for some usage examples.