- To: Kevin Saenz <ksaenz@xxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] ssh question
- From: Andrew McNaughton <andrew@xxxxxxxxxxx>
- Date: Fri, 13 Jun 2003 17:46:16 +1200 (NZST)
- Cc: Lyle Chapman <lyle@xxxxxxxxxxxxxxxxxxxxxx>
- Cc: slug@xxxxxxxxxxx
IF you really wanted to do it with passwords, you could wrap ssh with an
expect script. It's a pretty standard example case for expect, so I'm
sure you'd find the script out there already. From memory I think perl's
Expect.pm documentation deals with it a bit.
Andrew
On Thu, 12 Jun 2003, Kevin Saenz wrote:
> I don't think there is a way except for creating keys and copying the
> public key to ~/.ssh directory and naming the key file as authorize_keys
> Then at least you could do commands like
> ssh -l admin 192.168.0.1 -X -C Eterm
>
> or run other jobs.
>
> > I am trying to ssh into a remote machine - what I want to do is log in
> > with a username and password supplied in the one command - is there a
> > way to this?
> >
> > #ssh -l admin@192.168.0.1 passwd test?
> >
> > HELP PLEASE!
>
--
No added Sugar. Not tested on animals. If irritation occurs,
discontinue use.
-------------------------------------------------------------------
Andrew McNaughton In Sydney
Working on a Product Recommender System
andrew@xxxxxxxxxxx
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc