From: T.Sariyski on
Hi,
I have problems to configure a remote kernel. The local machine is
WinSP/i386, the remote is SuSe10.1/x86_64. Both machines are in the
same LAN, no firewalls, no routers.

As a Shell Command I have:

ssh 192.168.87.99 -l tsariysk 'math -mathlink -LinkMode Connect
-LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `ipaddress`'

When submitted from a command prompt it works (full output is attached
at the end):

ssh 192.168.87.99 -l tsariysk 'math -mathlink -LinkMode Connect
-LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `ipaddress`'
LinkConnect::linkc:
-- Message text not found -- (LinkObject[0(a)192.168.187.99, 1, 1])
Cannot initialize Motif graphics

On the remote machine there is a running process:
MathKernel -mathlink -LinkMode Connect -LinkProtocol TCPIP -LinkName
-LinkHost

When I try to start a remote kernel from Mathematica I get a beep on the
local machine and "Error PAM: Authentication failure for ..." on the
remote machine. I have password-less connection to the remote machine
(ssh-agent) and PAM shouldn't be invoked at all.

1. Why a shell command behaves differently when executed from a shell
and when executed from Mathematica?
2. How to make the connection more verbose? I have no clue where to look
for debug and how to decrypt the output.
3. In addition to the Help where to find more documentation for this issue?

Thanks in advance,
Ted


$ ssh 192.168.87.99 -l tsariysk 'math -mathlink -LinkMode Connect
-LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `ipaddress`'
Warning: No xauth data; using fake authentication data for X11 forwarding.
bash: linkname: command not found
bash: ipaddress: command not found

LinkConnect::linkc:
-- Message text not found -- (LinkObject[0(a)192.168.187.99, 1, 1])
Cannot initialize Motif graphics

FrontEndObject::notavail:
A front end is not available; certain operations require a front end.

FrontEndObject::notavail:
A front end is not available; certain operations require a front end.

FrontEndObject::notavail:
A front end is not available; certain operations require a front end.

General::stop: Further output of FrontEndObject::notavail
will be suppressed during this calculation.

UpdateNotebookStyles::badarg:
NotebookObject expected at position 1 in UpdateNotebookStyles[$Failed]

ReplaceAll::reps:
{AbsoluteOptions[Null, CommonDefaultFormatTypes]}
is neither a list of replacement rules nor a valid dispatch table,
and so
cannot be used for replacing.

ReplaceAll::reps:
{CommonDefaultFormatTypes /. AbsoluteOptions[Null, <<23>>s]}
is neither a list of replacement rules nor a valid dispatch table,
and so
cannot be used for replacing.

ReplaceAll::reps:
{WorkingForm :> Output /. <<1>>, <<1>>, Sym<<11>>ame -> }
is neither a list of replacement rules nor a valid dispatch table,
and so
cannot be used for replacing.

General::stop: Further output of ReplaceAll::reps
will be suppressed during this calculation.

Utilities`Notation`Private`boxedStringPatternsToPatterns::nonopt:
Options expected (instead of WorkingForm -> WorkingForm /. {<<3>>}
) beyond position 1 in
Utilities`Notation`Private`b<<12>>tternsToPatterns[
<<2>>]. An option must be a rule or a list of rules.

Utilities`Notation`Private`boxedStringPatternsToPatterns::nonopt:
Options expected (instead of WorkingForm -> WorkingForm /. {<<3>>}
) beyond position 1 in
Utilities`Notation`Private`b<<12>>tternsToPatterns[
<<2>>]. An option must be a rule or a list of rules.

Utilities`Notation`Private`boxedStringPatternsToPatterns::nonopt:
Options expected (instead of WorkingForm -> WorkingForm /. {<<3>>}
) beyond position 1 in
Utilities`Notation`Private`b<<12>>tternsToPatterns[
<<2>>]. An option must be a rule or a list of rules.

General::stop: Further output of
Utilities`Notation`Private`b<<12>>tternsToPatterns::nonopt
will be suppressed during this calculation.

ToExpression::interpfmt:
<<1>> is not a valid interpretation format. Valid interpretation formats
include InputForm and any member of $BoxForms.

ToExpression::interpfmt:
<<1>> is not a valid interpretation format. Valid interpretation formats
include InputForm and any member of $BoxForms.

ToExpression::interpfmt:
<<1>> is not a valid interpretation format. Valid interpretation formats
include InputForm and any member of $BoxForms.

General::stop: Further output of ToExpression::interpfmt
will be suppressed during this calculation.