Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?

From: Stephen Copp (scopp_at_ea.com)
Date: 09/30/03

  • Next message: Stephen Copp: "How to script the creation of a text file, with 4/5 lines of text"
    Date: Mon, 29 Sep 2003 19:25:01 -0700
    
    

    Hi Bill,

    I'm having a similar issue with 'ssh' asking for passwords everytime (once
    would be fine). Could you please explain further on the following. I don't
    quite understand what you mean by "public keys":

    > By using public keys, you don't need to type the password.
    > man ssh
    > man ssh-copy-id

    Also, is there anything to get around 'scp2' asking for passwords? Thanks.

    -Stephen

    "Bill Marcum" <bmarcum@iglou.com> wrote in message
    news:oh9h41-6ge.ln1@don.localnet...
    > On Fri, 26 Sep 2003 17:50:33 -0500, walala
    > <mizhael@yahoo.com> wrote:
    > > Dear all,
    > >
    > > I am facing a problem that needs your help... I need to run a simulation
    in
    > > part on about 30+ unix workstations, servers, etc. We use ssh here.
    > >
    > > Every time I need to do the following:
    > >
    > > ssh username@machinename1.xxx.xxx.xxx
    > > nohub run_some_job_in_background &
    > > logout
    > > ssh username@machinename2.xxx.xxx.xxx
    > > nohub run_some_job_in_background &
    > > logout
    > > ssh username@machinename3.xxx.xxx.xxx
    > > nohub run_some_job_in_background &
    > > logout
    > >
    > > the trouble was:
    > >
    > > a. The above script scheme did not work. after I typed in the password
    for
    > > the first login, it logged onto the first machine, and run .cshrc of
    that
    > > machine, and then stopped, without running my "nohub" and "logout"
    command,
    > > basically, it stopped there;
    > >
    > I think you mean "nohup", and couldn't you do it on one line, like
    > ssh username@machinename "nohup run_some_job &"
    >
    > > b. Even if the scheme worked, there still has the trouble that everytime
    I
    > > need to type in password again and again for the 30+ machines...
    > >
    > By using public keys, you don't need to type the password.
    > man ssh
    > man ssh-copy-id
    >
    > > Can anybody give me help on how to fully streamline the whole process?
    > >
    > > Thanks a lot,
    > >
    > > -walala
    > >
    > >
    >
    >
    > --
    > Commander Spiral Pyjama Pseudo-Rhinocerous Feline Thingamajig Bill Marcum
    > (the First)
    > Ozy and Millie Name Generator http://heifong.phase.org/omname.php


  • Next message: Stephen Copp: "How to script the creation of a text file, with 4/5 lines of text"

    Relevant Pages

    • UPDATE Re: rlogin - security question [expanded to smartcard technology]
      ... explinations of ssh etc. ... 0-13-100092-6) with the words "The Official Sun Microsystems Resource ... place root / users cannot set/change passwords. ... > we are required to allow rlogin access to all by means of .rhosts files. ...
      (SunManagers)
    • Re: S: ssh worms FAQ
      ... > There is many ssh worms in the Internet since this summer. ... weak passwords with BS accounts like "test" and "guest". ... and had larger lists of passwords. ... frequently loaded with copies of Linux viruses RST (the Remote Shell ...
      (comp.os.linux.security)
    • Re: how to react on ssh attacks?
      ... >>I recently checked my log files of my ssh service (so far as I ... >passwords, and then common user names with a bunch of passwords. ... >It's not really something to worry about - if you have root login ... >requires a key on the connecting machine that has been signed by your ...
      (Fedora)
    • Re: Is ssh not safe?
      ... I use my server PC for web ... > that they can log in and change their passwords if need be. ... As long as you are using ssh version 2 (normally an option on the server ... added benefit that you will only need to have port 22 open for ssh since ...
      (Fedora)
    • Re: how to react on ssh attacks?
      ... > I recently checked my log files of my ssh service (so far as I ... passwords, and then common user names with a bunch of passwords. ... It's not really something to worry about - if you have root login ... requires a key on the connecting machine that has been signed by your ...
      (Fedora)

  • Quantcast