[rancid] Re: clogin error

Grace Ingabire gingabire at rwandatel.rw
Wed Nov 12 10:17:11 UTC 2008

Hi Steve,


I have done it as advised. In my /root/.clogin I have this syntax for all
our devices:


add user xxx  peter

add password xxx  password enable password

add method xxx {telnet}


Where are we supposed to add devices (routers) manually?


I have tried to test as rancid user and got this:



/usr/local/rancid/bin/clogin xxx

spawn telnet xxx

Trying xxx...

Connected to xxx (xxx).

Escape character is '^]'.



Cisco Systems Console





Enter password:


Enter password:


Enter password:

Connection closed by foreign host.

spawn ssh -c 3des -x -l rancid xxx

ssh_exchange_identification: Connection closed by remote host


Error: Connection closed (ssh): xxx


What is the root cause of this?


Thanks for your quick reply.






From: Steve Ousley [mailto:steve at host-it.co.uk] 
Sent: Wednesday, November 12, 2008 11:57 AM
To: 'Grace Ingabire'; rancid-discuss at shrubbery.net
Subject: RE: [rancid] clogin error


Hi Grace


All you need to do is make the file not writable by anyone except the user
that rancid runs as.  You can do this by running the command:


chmod 600 .cloginrc


in the home directory of the user that rancid runs as.


Steve Ousley - SO620-RIPE

Nuco Technologies Ltd

 <mailto:steve at host-it.co.uk> steve at host-it.co.uk

 <http://www.nucotechnologies.com/> www.nucotechnologies.com

Tel. 0870 165 1300


Nuco Technologies Ltd is a company registered in England and Wales
with company number 04470751


From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Grace Ingabire
Sent: 12 November 2008 08:53
To: rancid-discuss at shrubbery.net
Subject: [rancid] clogin error




I installed and configured rancid properly but when trying to test it with
/usr/local/rancid/bin/clogin xx.xx.xx.xx, I'm getting this error


Error: /root/.cloginrc must not be world readable/writable.

Should not we edit this file?


Need your advice on the .clogin file and where should we add manually all







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081112/84799ae4/attachment.html 

More information about the Rancid-discuss mailing list