Remote kernels over SSH
- To: mathgroup at smc.vnet.net
- Subject: [mg107922] Remote kernels over SSH
- From: Jozef Pulko <jozef.pulko at googlemail.com>
- Date: Wed, 3 Mar 2010 05:49:16 -0500 (EST)
Dear Group Members, I have a problem with parallel remote kernels over SSH in Mathematica 7.0. The host is running WinXP Pro, SP3, Mathematica 7.0.1, openssh client+server are installed. The remote machine is running Ubuntu 9.10, Mathematica 7.0.1, openssh client+server installed *** WHAT WORKS: I can assign single remote machine kernels using Evaluation -> Kernel Configuration Options with Arguments to MLOpen: -LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract Shell command to launch Kernel: "`java`" -jar "`mathssh`" pet@hostname math -mathlink -LinkMode Connect -LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `ipaddress` This works fine and I can compute my notebook with that remote kernel. *** WHAT DOES NOT WORK (even not when firewall is turned off): I am NOT able to launch the remote kernels on the Ubuntu machine from the WinXP machine in parallel via Evaluation -> Parallel Kernel Configuration -> Remote Kernels. I add my host liks this: Hostname: hostname Use custom launch command: ssh -x -f pet@hostname math -mathlink -linkmode Connect =B44=B4 -linkname '=B42=B4' -noinit Executing ssh pet@hostname math in a command window runs and displays the remote machine's kernel ln[] where I can compute as usual. So ssh should not be the problem. The error message is: LinkConnect::linkc: -- Message text not found -- (LinkObject[4119 at 141.39.169.106,4120 at 141.39.169.106, 1, 1]) where 141.39.169.106 is the IP address of the WinXP host. *** Other tries that DID NOT WORK: to tunnel via ssh: C:\Programme\OpenSSH\bin\ssh.exe -R 31415:127.0.0.1:31415 -R 31416:127.0.0.1:31416 pet at 141.39.169.47 "math -mathlink -LinkMode Connect -LinkProtocol TCPIP -LinkName 31415 at 127.0.0.1,31416 at 127.0.0.1 -LinkHost 127.0.0.1" or the use of plink.exe C:\plink.exe -batch -v -ssh -C -x -l "pet" -pw "iluzionist" 10.0.0.2 "/usr/local/bin/math" -mathlink -LinkMode Connect - LinkProtocol TCPIP -LinkName `linkname` *** Note that the other direction (From Ubuntu to Windows via ssh, analog custom launch command as mentioned above) I am able to launch the additional Kernels of the Windows machine, they appear in the Parallel Kernels Window. Please, can someone help? Any suggestions? Cheers! Jozef