tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ "rehash" for Bourne shell ?

A bit of a grep stumper ▻

remote login via shell script

In article <381F0A79.80FF8438@student.ethz.ch>,
Martin Burkahrt  <bumartin@student.ethz.ch> wrote:
>I need to connect to host1 using rsh or ssh, then enter my password, start a
>program and exit.

If you've got `ssh', you don't need passwords!

Make sure that your client machine has a host key pair
(/etc/ssh_host_key and /etc/ssh_host_key.pub) and that the public half
of this key appears in /etc/ssh_known_hosts on host1.  Then simply add
the name of the client machine to .shosts in your home directory on
host1.  Now you can use ssh without typing a password.

(This assumes that your site permits host-based ssh authentication.
Some places only use user-based authentication, in which case you need
your own key pair in .ssh/identity and .ssh/identity.pub, and the public
half needs to appear in .ssh/authorized_keys on host1.)

Tim.
--
Tim Goodwin   | "People think [ W. Gibson is ] hi-tech because his prose
Leicester, UK | is as pleasant to read as a C++ program." -- JT

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: remote login via shell script
Date: 2 Nov 1999 16:18:00 -0000
Organization: University of Leicester, UK
Message-ID: <7vn2se$712$1@ltpcg.star.le.ac.uk>
References: <381879D1.C7953D8A@student.ethz.ch>
  <38189DDD.574D0194@anlw.anl.gov> <381F0A79.80FF8438@student.ethz.ch>

△ comp.unix.shell △

◅ "rehash" for Bourne shell ?

A bit of a grep stumper ▻