[kwlug disc.] bash script basics

Unsolicited unsolicited at gto.net
Sat Feb 10 18:46:48 EST 2007


My bash scripting isn't up to snuff, but your note leaves me a little 
confused. Are you setting up local userid/passwords for 'passwordless 
login' or are you setting up your machine to connect to one of these 
machines without passwords? [The latter would say you already have ssh 
running there, etc.]

Assuming you already have a connectivity mechanism to these other 
machines, probably as root, can you not either (a) append your userid 
line from your passwd file to the remote's, or (b) deposit your 
certificate to the right spot on the remote machines?

Regardless, this should be scriptable, although off the top of my 
head, not by me.

Kyle Spaans wrote, On 2/10/2007 6:30 PM:
> 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...
> _______________________________________________
> KWLUG-Disc mailing list
> KWLUG-Disc at kwlug.org
> http://listserv.kwlug.org/mailman/listinfo/kwlug-disc
> 


More information about the KWLUG-Disc mailing list