[rancid] Rancid Login to device with wrong username and password
Muhammad Shoaib
mshoaib at paciolan.com
Mon Feb 26 06:39:37 UTC 2018
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.
mS
---
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
>http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>------------------------------
>
>End of Rancid-discuss Digest, Vol 88, Issue 17
>**********************************************
More information about the Rancid-discuss
mailing list