[rancid] clogin that reads passwords from stdin

Matjaz Straus matjaz.straus at arnes.si
Tue Jul 17 08:56:21 UTC 2007


Hi, all!

We've disliked the idea that router passwords are stored on disk while clogin 
is being executed. Therefore, we wrote a small patch that allows clogin to 
read passwords from STDIN (with a "-f -" option). You might find this patch 
interesting.

Example of usage:
some_prog_that_writes_cloginrc 2>/dev/null |clogin -f - -c "sh ver" device_name

Regards,

	Matjaz

P.S.
Another minor thing -- I've found "term width 0" in clogin very useful.


--
Matjaz Straus, ARNES       matjaz.straus at arnes.si  MS6745-RIPE
Jamova 39, p.p.7, SI-1001  Ljubljana, Slovenija
tel:+386 1 479-88-00       fax:+386 1 479-88-99
http://www.arnes.si/
PGP public key at: http://www.arnes.si/~matjaz/
keyID 7AB260CD 1998-11-04
key fingerprint = 32 23 95 63 FE D3 FF C9  7B 88 21 A6 0C A9 3B 5E
------------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clogin.patch
Type: application/x-patch
Size: 2154 bytes
Desc: clogin.patch
Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070717/0a7c92f0/attachment.bin 


More information about the Rancid-discuss mailing list