[kwlug disc.] bash script basics

John Van Ostrand john at netdirect.ca
Sat Feb 10 18:46:43 EST 2007


On Sat, 2007-02-10 at 18:30 -0500, Kyle Spaans wrote:
> I've got a similar question actually:
> At work I need to setup passwordless login on 100+ remote machines. 

Sounds like it might be a job for Kerberos.

> On
> my local computer I use a command that works like so:
> 
> remote.command.add.ssh-key <username> <host>
> 
> It then connects to <host> using my <username>, at which point I'll
> say "yes" twice, and then enter my password twice.
> 
> Is there any way I can get a bash script to interactively handle the
> input to this other command (especially since it is exactly the same
> for all of the remote machines)? Or is it the exact same process as
> above for Richard? I asked someone in our IRC channel, and they said
> something about using sockets...

So is it that you want to automate the "Yes" and passwords? It looks
like you are trying to push out public keys is that it?

--
John Van Ostrand
         Net Direct Inc.
 
CTO, co-CEO
564 Weber St. N. Unit 12
   Waterloo, ON N2L 5C6 
 map 
john at netdirect.ca
        Ph: 519-883-1172
 ext.5102
Linux Solutions / IBM
Hardware
        Fx: 519-883-8533





More information about the KWLUG-Disc mailing list