Hi,

I don't know if this will help anyone.
We recently had a great deal of success running remote searches on Linux machines on our campus network and I presume the same would be valid for cygwin.

We had hours of fun setting up password-less logins until we decided to use a tcl-expect script to automate the login. This proved to be far easier although it requires an initial logon to each machine to get past the 'permanently store fingerprint' prompt the first time you log on.
What we had was this:-

unilogin (executable file in path)

1 #!/usr/bin/expect
2 spawn ssh <username>@<servername>.tees.ac.uk
3 expect "*?assword:*"
4 send "<password>\r"
5 expect "Last*"
6 send [lrange $argv 1 end]
7 send "\n"
8 interact

Notes:
usage - unilogin <servername> <command>
2 spawns an ssh connection for user <username> on server <servername>
3 waits for password prompt
4 sends users password
5 waits for 'last logged in' prompt
6/7 sends  the contents of command
8 leaves the session working (I think we needed this for some reason - but I may be wrong!)

Anyway, all we did was replace the
   E={New Search.parallel init('computer':1#ssh , etc...)}
with
   E={New Search.parallel init('computer':1#unilogin , etc...)}
because oz then just makes a call using unilogin instead of ssh to connect to the remote computer.

It's a good few months since we actually did this so forgive me if I've made any syntax errors, I'm typing from memory. We had initial problems with the oz-tickets always being stamped with 'localhost' ip-address but I've had this working from my laptop at home to servers on campus via the internet.

Regards

Mark Richardson






Wolfgang Meyer wrote:
Dear Enrique,

I don't know about rsh, but I had success with _ssh_ and Mozart 1.3.2.
I followed these instructions to set up an ssh server (using Cygwin):
http://pigtail.net/LRP/printsrv/cygwin-sshd.html

Note that you have to enable password-less login. The linked document describes how to do that.

I had to disable my software firewall (ZoneAlarm), but the Windows XP Firewall did not cause trouble. I also had to make sure that the correct path is set for the ssh account (such that ozengine is found). (My Computer -> System Properties -> Environment Variables -> System Variables; reboot afterwards.)

I also tested on Mozart 1.4.0, but that did _not_ work (not even with this patch: http://lists.gforge.info.ucl.ac.be/pipermail/mozart-hackers/2008/003072.html ).

Cheers,
 Wolfgang



Jose Enrique Benitez Jimenez wrote:
yes, I try that, but it work sometimes, look like my rsh Daemon do not work fine, What Deamon you suggest? ----------------------------------------------------------------------

Message: 1
Date: Wed, 13 May 2009 13:57:53 +0200
From: Wolfgang Meyer <[email protected]>
Subject: Re: Problem with Remote module
To: Mozart users <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jose Enrique Benitez Jimenez wrote:
...
And get this error:
%****************** Error: remote module manager ****************
%**
%** remote(cannotCreate <O: ManagerProxy> localhost)
%**
%** Call Stack:
%** procedure 'ManagerProxy,init' in file "f:/cygwin/home/Administrator/Mozart-1-3-2/mozart/share/lib/dp/Remote.oz", line 138, column 6, PC = 19511160
%**--------------------------------------------------------------
Do any of you know why it do that, thanks.


Looks like the forking did not work and the timeout expired, e.g. Mozart
gave up creating the remote connection.

Did you already try the test in the documentation (
http://www.mozart-oz.org/home/doc/system/node48.html <http://10.0.0.32/exchweb/bin/redir.asp?URL=http://www.mozart-oz.org/home/doc/system/node48.html> ), e.g. trying to
execute in a DOS-prompt (not cygwin):

rsh  <Host>  ozengine x-oz://system/RemoteServer.ozf --test

?

Cheers,
  Wolfgang


_________________________________________________________________________________ mozart-users mailing list [email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

--
Mark Richardson
Final year undergraduate
University of Teesside [email protected]
[email protected]

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to