[rancid] Rancid Login to device with wrong username and password

Sathish Kumar. Ippani sathish.i at ctrls.in
Mon Feb 26 06:47:33 UTC 2018

Thanks Shoaib,

Thanks for your inputs.

I have already configured .cloginrc with correct username and password also given cisco name for reference only.


-----Original Message-----
From: Muhammad Shoaib [mailto:mshoaib at paciolan.com]
Sent: Monday, February 26, 2018 12:10 PM
To: rancid-discuss at shrubbery.net; Sathish Kumar. Ippani
Subject: Re: Rancid Login to device with wrong username and password

Hi Sathish,

You can define the following in your .cloginrc to use ³cisco² as a username as :

# Cisco switches
add user ciscoswitch01 cisco
add userpassword ciscoswitch01 {password} add password ciscoswitch01 {password} {password} add method ciscoswitch01 {ssh} {telnet}

The first line define the username Š here it is "cisco"
Second line is the password
Third line is the first and then enable password Last line is the method Š here it will try ssh first then telnet.
ciscoswitch01 - it is your device hostname and it should resolved to an ip address. You can use either DNS or /etc/hosts file for resolution.

As Heasley mentioned Š this file sits under rancid root directory and named ³.cloginrc²

Also Randy has a point not to use ³cisco² as a username for security reason. You can create user ³rancid² or any other and update your .cloginrc file.

Hope it is helpful.


Muhammad Shoaib
Sr. Mgr, Network Engineering

On 2/25/18, 12:00 PM, "Rancid-discuss on behalf of rancid-discuss-request at shrubbery.net"
<rancid-discuss-bounces at shrubbery.net on behalf of rancid-discuss-request at shrubbery.net> wrote:

>Send Rancid-discuss mailing list submissions to
>       rancid-discuss at shrubbery.net
>To subscribe or unsubscribe via the World Wide Web, visit
>       http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>or, via email, send a message with subject or body 'help' to
>       rancid-discuss-request at shrubbery.net
>You can reach the person managing the list at
>       rancid-discuss-owner at shrubbery.net
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Rancid-discuss digest..."
>Today's Topics:
>   1. Re: Rancid Login to device with wrong username and password
>      (Randy Bush)
>Message: 1
>Date: Sat, 24 Feb 2018 10:17:12 -1000
>From: Randy Bush <randy at psg.com>
>To: "Sathish Kumar. Ippani" <sathish.i at ctrls.in>
>Cc: rancid-discuss at shrubbery.net
>Subject: Re: [rancid] Rancid Login to device with wrong username and
>       password
>Message-ID: <m2y3jixhvb.wl-randy at psg.com>
>Content-Type: text/plain; charset=US-ASCII
>> Sat, Feb 24, 2018 at 10:15:33AM +0000, Sathish Kumar. Ippani:
>> I have configured deferent username(cisco) to login to cisco device.
>                             ^^^^^^^^^^^^^^^
>this is strongly NOT recommended for security reasons
>Subject: Digest Footer
>Rancid-discuss mailing list
>Rancid-discuss at shrubbery.net
>End of Rancid-discuss Digest, Vol 88, Issue 17

 Disclaimer: The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet.

More information about the Rancid-discuss mailing list