[kwlug disc.] bash script basics

Kyle Spaans 3lucid at gmail.com
Sat Feb 10 18:30:23 EST 2007


I've got a similar question actually:
At work I need to setup passwordless login on 100+ remote machines. 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...


More information about the KWLUG-Disc mailing list