FW: Needed - remote login and piped execution script.
Eugene Tsyrklevich
eugene at securityarchitects.com
Wed Sep 6 18:56:59 CDT 2000
~sdpm~
man ssh
search for .shosts
On Wed, Sep 06, 2000 at 04:24:03PM -0700, Rick Schlientz wrote:
> ~sdpm~
> Guess I need to clarify.... sorry.
>
> I am using ssh1, and not telnet. Good point there.
> I know I can use authorized_keys, etc. for ssh, but:
> o The remote user is not the same as the local user.
> o This script is the only allowed connection to the system for most folks.
> If I used authorized keys, I would have to have keys for every possible remote
> user and combination thereof. I think... :^)
>
> So I still need to figure out Expect.pm...
>
> Thanks!
> RickS
>
> Bobby Kleemann wrote:
>
> > ~sdpm~
> > You shouldn't need Perl. Try
> >
> > tar cf - . | ssh remote-machine tar xvpf -
> >
> > With SSH1 you could set it up and login without a password. I don't know
> > the process for SSH2. There may be an option or two of SSH you need to
> > map stdout locally to stdin remotely. If you don't need to worry about
> > security over the net then you can probably use rsh instead. Telnet would
> > be a bad solution because it's possible for the escape character to show
> > up and you'd have to go through all sorts of contortions to protect that.
> > _ _ _
> > Bobby Kleemann <rkleeman at neta.com>
> > http://www.neta.com/~rkleeman/
> >
> > On Wed, 6 Sep 2000, Rick Schlientz wrote:
> >
> > > ~sdpm~
> > > Guess I'll try sending this again...
> > >
> > > -----Original Message-----
> > > From: Rick Schlientz [mailto:rschlientz at yahoo.com]
> > > Sent: Thursday, August 31, 2000 5:10 PM
> > > To: San Diego Perl Mongers
> > > Subject: Needed - remote login and piped execution script.
> > >
> > >
> > > Hi PerlMongers!
> > >
> > > I'm trying to write some perl code to log into a system, launch a program,
> > > then launch a program on the local system and connect it's stdout to the
> > > remote systems stdin, etc. I was thinking Expect.pm would be a good tool
> > > for the job, but would like some advice on how to go about using it, or
> > > advice on a better way of doing things if there is one.
> > >
> > > An example sequence for tar would be this:
> > >
> > > 1) Telnet to the remote system.
> > > 2) Login to the remote system.
> > > 3) Launch tar xvpf - on the remote system.
> > > 4) Launch tar cf - ./ (or whatever) on the local system.
> > > 5) Let tar happen.
> > > 6) Close down the remote tar.
> > > 7) Close down the local tar.
> > > 8) Exit.
> > >
> > > Comments? Ideas? Thanks in advance!
> > >
> > > ~sdpm~
> > >
> > > The posting address is: san-diego-pm-list at hfb.pm.org
> > >
> > > List requests should be sent to: majordomo at hfb.pm.org
> > >
> > > If you ever want to remove yourself from this mailing list,
> > > you can send mail to <majordomo at happyfunball.pm.org> with the following
> > > command in the body of your email message:
> > >
> > > unsubscribe san-diego-pm-list
> > >
> > > If you ever need to get in contact with the owner of the list,
> > > (if you have trouble unsubscribing, or have questions about the
> > > list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> > > This is the general rule for most mailing lists when you need
> > > to contact a human.
> > >
> >
> > ~sdpm~
> >
> > The posting address is: san-diego-pm-list at hfb.pm.org
> >
> > List requests should be sent to: majordomo at hfb.pm.org
> >
> > If you ever want to remove yourself from this mailing list,
> > you can send mail to <majordomo at happyfunball.pm.org> with the following
> > command in the body of your email message:
> >
> > unsubscribe san-diego-pm-list
> >
> > If you ever need to get in contact with the owner of the list,
> > (if you have trouble unsubscribing, or have questions about the
> > list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> > This is the general rule for most mailing lists when you need
> > to contact a human.
>
> ~sdpm~
>
> The posting address is: san-diego-pm-list at hfb.pm.org
>
> List requests should be sent to: majordomo at hfb.pm.org
>
> If you ever want to remove yourself from this mailing list,
> you can send mail to <majordomo at happyfunball.pm.org> with the following
> command in the body of your email message:
>
> unsubscribe san-diego-pm-list
>
> If you ever need to get in contact with the owner of the list,
> (if you have trouble unsubscribing, or have questions about the
> list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> This is the general rule for most mailing lists when you need
> to contact a human.
>
>
~sdpm~
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
unsubscribe san-diego-pm-list
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm
mailing list