Hello,

Thanks for the prompt response. It's strange, but now I'm getting staf
error code 255 for both the case with 'stdin' option and the case
without it. That is to say, I don't get the same result as before.

I think I will switch, at least temporarily, to rsh which since it
seems to work fine.

Thanks & regards,
    Javier

2008/9/3 David Bender <[EMAIL PROTECTED]>:
>
> Can you try creating an empty text file on machine_b  (i.e. /tmp/input.txt).
>  Then run your process with the STDIN option, specifying the empty text file
> you created, such as:
>
> staf -verbose <machine_b> process start shell command ssh parms '<machine_c>
> ls' STDIN /tmp/input.txt returnstdout wait username <username>
>
> and see if that resolves the problem?
>
> David Bender
> STAF/STAX Development
> 8-1268 (512-838-1268)
> IBM Austin Bldg. 903-5B002
> Internet: [EMAIL PROTECTED]
>
>
>
> "Javier Collado" <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
>
> 09/03/2008 05:50 AM
>
> To
> staf-users@lists.sourceforge.net
> cc
> Subject
> [staf-users] Start process ssh problem
>
>
>
>
> Hello,
>
> I'm trying to run ssh remotely as a process through STAF. Let's say
> that "a" is the machine that invokes the staf command, "b" is the
> machine that runs ssh and "c" is the machine that receives the ssh
> request. In addition to this, let's assume that:
> - ssh keys between "b" and "c" have been exchanged so ssh commands may
> be invoked from "b" to "c" without having to having to write any
> password.
> - staf trust level for "a" in "b" has been set to 5 so no trust level
> problems arise.
>
> Hence, if I try to run the following command in "b":
> ssh <machine_c> ls
>
> I don't get any error and the listing of the home directory is
> received correctly.
>
> However, if I try to run the following command in "a":
> staf -verbose <machine_b> process start shell command ssh parms
> '<machine_c> ls' returnstdout wait username <username>
>
> The following is the displayed in the console in "b"
> "Enter passphrase for key" (etc.)
>
> Thus, it seems that a password is required to use ssh key. However,
> the key has an empty password and, in fact, in the first example I
> used without any problem.
>
> Probably I've skipped something regarding ssh authentication, but I'm
> not able to find out what it is right now. Does anybody have any idea
> about that? Thanks.
>
> Best regards,
>    Javier
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to