Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW? - REXX

This is a discussion on Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW? - REXX ; I'm in the very last stages of porting a big electromagnetic simulator to a linux cluster. To distribute the various jobs around the cluster nodes, I'm trying to use a Rexx program. This program generates a little shell script for ...

+ Reply to Thread
Results 1 to 8 of 8

Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW?

  1. Default Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW?

    I'm in the very last stages of porting a big electromagnetic simulator
    to a linux cluster. To distribute the various jobs around the cluster
    nodes, I'm trying to use a Rexx program. This program generates a
    little shell script for each cluster host, puts them on a NFS share
    where they're visible to all the cluster hosts, and then calls ssh N
    times to run it, something like this:

    do i= 1 to N
    'ssh me@mycluster /share/someplace/host'N'.sh &'
    end

    The problem is that even though I have ssh-agent running, it doesn't
    work from inside the Rexx program--I get asked for all the passwords,
    and since the ssh instances are in the background, the program just
    waits and waits. This happens on both ooRexx and Regina (x86_64 linux).

    Is there a way to get ssh-agent working inside a Rexx script?

    Thanks,

    Phil Hobbs


  2. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW?

    Phil Hobbs wrote:

    > I'm in the very last stages of porting a big electromagnetic simulator
    > to a linux cluster. To distribute the various jobs around the cluster
    > nodes, I'm trying to use a Rexx program. This program generates a
    > little shell script for each cluster host, puts them on a NFS share
    > where they're visible to all the cluster hosts, and then calls ssh N
    > times to run it, something like this:
    >
    > do i= 1 to N
    > 'ssh me@mycluster /share/someplace/host'N'.sh &'
    > end
    >
    > The problem is that even though I have ssh-agent running, it doesn't
    > work from inside the Rexx program--I get asked for all the passwords,
    > and since the ssh instances are in the background, the program just
    > waits and waits. This happens on both ooRexx and Regina (x86_64 linux).
    >
    > Is there a way to get ssh-agent working inside a Rexx script?
    >
    > Thanks,
    >
    > Phil Hobbs
    >


    Never mind. Pilot error.

    Cheers,

    Phil Hobbs

  3. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx program without asking for a PW?

    | Phil Hobbs wrote:
    | I'm in the very last stages of porting a big electromagnetic simulator
    | to a linux cluster. To distribute the various jobs around the cluster
    | nodes, I'm trying to use a Rexx program. This program generates a
    | little shell script for each cluster host, puts them on a NFS share
    | where they're visible to all the cluster hosts, and then calls ssh N
    | times to run it, something like this:
    |
    | do i= 1 to N
    | 'ssh me@mycluster /share/someplace/host'N'.sh &'
    -------------------------------------------- I ----- ?

    Did you intend to use the DO loop index here instead of N ?
    ________________________________________________________Gerard S.



    | end
    |
    | The problem is that even though I have ssh-agent running, it doesn't
    | work from inside the Rexx program--I get asked for all the passwords,
    | and since the ssh instances are in the background, the program just
    | waits and waits. This happens on both ooRexx and Regina (x86_64 linux).
    |
    | Is there a way to get ssh-agent working inside a Rexx script?




  4. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW?

    Gerard Schildberger wrote:
    > | Phil Hobbs wrote:
    > | I'm in the very last stages of porting a big electromagnetic simulator
    > | to a linux cluster. To distribute the various jobs around the cluster
    > | nodes, I'm trying to use a Rexx program. This program generates a
    > | little shell script for each cluster host, puts them on a NFS share
    > | where they're visible to all the cluster hosts, and then calls ssh N
    > | times to run it, something like this:
    > |
    > | do i= 1 to N
    > | 'ssh me@mycluster /share/someplace/host'N'.sh &'
    > -------------------------------------------- I ----- ?
    >
    > Did you intend to use the DO loop index here instead of N ?
    > ________________________________________________________Gerard S.
    >
    >
    >
    > | end
    > |
    > | The problem is that even though I have ssh-agent running, it doesn't
    > | work from inside the Rexx program--I get asked for all the passwords,
    > | and since the ssh instances are in the background, the program just
    > | waits and waits. This happens on both ooRexx and Regina (x86_64 linux).
    > |
    > | Is there a way to get ssh-agent working inside a Rexx script?
    >
    >
    >


    No, that was just a 4 AM typo, not a cut'n'paste. The problem was that
    the cluster configuration is mildly broken--the home directories for the
    normal user accounts don't exist on the nodes, so there's no .ssh
    directory, so there's no authorized_keys file, so ssh asks for
    passwords. It works fine as root--not a long term solution obviously,
    but at least it isn't the Rexx program's fault.

    Newsgroups have this great placebo effect--about 30% of the time I
    figure it out soon after posting.....oh, well.

    Cheers,

    Phil Hobbs

  5. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx program without asking for a PW?

    In <45C8E5F1.7040509@SpamMeSenseless.pergamos.net>, on 02/06/2007
    at 03:32 PM, Phil Hobbs <pcdh@SpamMeSenseless.pergamos.net> said:

    >Newsgroups have this great placebo effect--about 30% of the time I
    >figure it out soon after posting.....oh, well.


    I get the same effect when I ask someone to spot a bug in my code and
    start explaining what it's supposed to do. I suspect that the
    phenomenon is universal.

    --
    Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

    Unsolicited bulk E-mail subject to legal action. I reserve the
    right to publicly post or ridicule any abusive E-mail. Reply to
    domain Patriot dot net user shmuel+news to contact me. Do not
    reply to spamtrap@library.lspace.org


  6. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx program without asking for a PW?

    On Thu, 08 Feb 2007 16:52:31 -0500, Shmuel (Seymour J.) Metz wrote:
    > In <45C8E5F1.7040509@SpamMeSenseless.pergamos.net>, on 02/06/2007
    > at 03:32 PM, Phil Hobbs <pcdh@SpamMeSenseless.pergamos.net> said:
    >
    >>Newsgroups have this great placebo effect--about 30% of the time I
    >>figure it out soon after posting.....oh, well.

    >
    > I get the same effect when I ask someone to spot a bug in my code and
    > start explaining what it's supposed to do. I suspect that the
    > phenomenon is universal.


    Several hundred years ago I taught Basic programming classes (among
    others) at a state college. Sadly, few of the students would arrive at
    college with any problem solving skills.

    I told them -- that when they were stumped on a programming assignment
    -- to sit down and explain their program to their dog. (They all
    seemed to have had a dog.) Many of them remarked to me that it *really*
    did work. A few told me that years later -- post graduation.

    I call it Cerebral Percolation.

    Jonesy
    --
    Marvin L Jones | jonz | W3DHJ | linux
    38.24N 104.55W | @ config.com | Jonesy | OS/2
    *** Killfiling google posts: <http://jonz.net/ng.htm>

  7. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx program without asking for a PW?

    in 35432 20070209 002210 Allodoxaphobia <bit-bucket@config.com> wrote:
    >On Thu, 08 Feb 2007 16:52:31 -0500, Shmuel (Seymour J.) Metz wrote:
    >> In <45C8E5F1.7040509@SpamMeSenseless.pergamos.net>, on 02/06/2007
    >> at 03:32 PM, Phil Hobbs <pcdh@SpamMeSenseless.pergamos.net> said:
    >>
    >>>Newsgroups have this great placebo effect--about 30% of the time I
    >>>figure it out soon after posting.....oh, well.

    >>
    >> I get the same effect when I ask someone to spot a bug in my code and
    >> start explaining what it's supposed to do. I suspect that the
    >> phenomenon is universal.

    >
    >Several hundred years ago I taught Basic programming classes (among
    >others) at a state college. Sadly, few of the students would arrive at
    >college with any problem solving skills.
    >
    >I told them -- that when they were stumped on a programming assignment
    >-- to sit down and explain their program to their dog. (They all
    >seemed to have had a dog.) Many of them remarked to me that it *really*
    >did work. A few told me that years later -- post graduation.
    >
    >I call it Cerebral Percolation.


    A colleague and I called it "talking to the wall" - we would appear to be listening
    but not actually bother.

  8. Default Re: Rexx and ssh-agent: How can I get ssh to work from a Rexx programwithout asking for a PW?

    Bob Martin wrote:
    > in 35432 20070209 002210 Allodoxaphobia wrote:
    >> On Thu, 08 Feb 2007 16:52:31 -0500, Shmuel (Seymour J.) Metz wrote:
    >>
    >> I call it Cerebral Percolation.

    >
    > A colleague and I called it "talking to the wall" - we would appear to be listening
    > but not actually bother.


    AFAIK, it simply comes from forcing a different mental paradigm. You
    must verbalize each detail and you see the error.

    When looking at it by yourself, you have a preconceived notion about the
    piece that's in error -- you "know" that it's the right data type or
    that the semi-colon is in the right place or that the variable was
    properly initialized, whatever.

    Because you /know/ it, you cannot mentally question it. But when
    explaining to someone else, you put all of the details into words. When
    you hit the problem spot and start to translate what you see into words,
    the flaw is obvious.

    Just my personal way of making sense of it.

    --
    Tom Liotta

+ Reply to Thread

Similar Threads

  1. Linux, Cannot open REXX message catalog rexx.cat
    By Application Development in forum REXX
    Replies: 0
    Last Post: 08-15-2006, 07:46 AM
  2. Re: Rexx math (was: Which REXX?)
    By Application Development in forum REXX
    Replies: 2
    Last Post: 06-02-2006, 11:20 AM
  3. REXX pgm calling another REXX pgm not on the PATH
    By Application Development in forum REXX
    Replies: 7
    Last Post: 05-16-2006, 02:08 AM
  4. New Rexx Book: Rexx Programmer's Reference
    By Application Development in forum REXX
    Replies: 30
    Last Post: 06-22-2005, 10:40 PM
  5. Running Object Rexx rexx.exe as a NT Service
    By Application Development in forum REXX
    Replies: 3
    Last Post: 01-14-2005, 05:01 AM