Mailing List Archive

Rancid Login to device with wrong username and password
Dear All,

I have recently installed Rancid and I added device.

But when I testing clogin to a cisco device it is login to device rancid user, where I have configured deferent username(cisco) to login to cisco device.

Please let me know, If I need to change any configuration.



Thanks,

Sathish
________________________________
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.
Re: Rancid Login to device with wrong username and password [ In reply to ]
Sat, Feb 24, 2018 at 10:15:33AM +0000, Sathish Kumar. Ippani:
>
> Dear All,
>
> I have recently installed Rancid and I added device.
>
> But when I testing clogin to a cisco device it is login to device rancid user, where I have configured deferent username(cisco) to login to cisco device.
>
> Please let me know, If I need to change any configuration.

your .cloginrc. see clogin -[Mm]

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Rancid Login to device with wrong username and password [ In reply to ]
> 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

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Rancid Login to device with wrong username and password [ In reply to ]
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@shrubbery.net"
<rancid-discuss-bounces@shrubbery.net on behalf of
rancid-discuss-request@shrubbery.net> wrote:

>Send Rancid-discuss mailing list submissions to
> rancid-discuss@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@shrubbery.net
>
>You can reach the person managing the list at
> rancid-discuss-owner@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@psg.com>
>To: "Sathish Kumar. Ippani" <sathish.i@ctrls.in>
>Cc: rancid-discuss@shrubbery.net
>Subject: Re: [rancid] Rancid Login to device with wrong username and
> password
>Message-ID: <m2y3jixhvb.wl-randy@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@shrubbery.net
>http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>------------------------------
>
>End of Rancid-discuss Digest, Vol 88, Issue 17
>**********************************************

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Rancid Login to device with wrong username and password [ In reply to ]
Thanks Shoaib,

Thanks for your inputs.

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

Regards,
sathish

-----Original Message-----
From: Muhammad Shoaib [mailto:mshoaib@paciolan.com]
Sent: Monday, February 26, 2018 12:10 PM
To: rancid-discuss@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.

mS

---
Muhammad Shoaib
Sr. Mgr, Network Engineering





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

>Send Rancid-discuss mailing list submissions to
> rancid-discuss@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@shrubbery.net
>
>You can reach the person managing the list at
> rancid-discuss-owner@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@psg.com>
>To: "Sathish Kumar. Ippani" <sathish.i@ctrls.in>
>Cc: rancid-discuss@shrubbery.net
>Subject: Re: [rancid] Rancid Login to device with wrong username and
> password
>Message-ID: <m2y3jixhvb.wl-randy@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@shrubbery.net
>http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
>------------------------------
>
>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.
________________________________

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss