[rancid] Issue with custom ports

heasley heas at shrubbery.net
Wed Dec 20 15:17:10 UTC 2017


Wed, Dec 20, 2017 at 11:28:07AM +0000, Craig Hopkins:
> On 15 December 2017 at 20:01, heasley <heas at shrubbery.net> wrote:
> 
> > Fri, Dec 15, 2017 at 03:45:54PM +0000, Craig Hopkins:
> > > Hi,
> > >
> > > I've tried adding
> > >
> > > add method HOST {ssh:60022}
> > >
> > > to my config, but it's still connecting to HOST on port 22. Is there
> > > something special to this flag?
> > >
> > > Running rancid 3.6.2
> >
> > which device type?  does clogin -m HOST display the method you expect?
> >
> 
> HOST
> password:/var/lib/rancid/.cloginrc:924: HOST PASSWORD PASSWORD
> user:/var/lib/rancid/.cloginrc:923: HOST USERNAME
> method:/var/lib/rancid/.cloginrc:680: * ssh telnet
> method:/var/lib/rancid/.cloginrc:925: HOST ssh:60022
> 
> Is the first method preventing the second one being triggered? I really

yes.

> don't want to comment it out and disrupt other hosts. Line 680 is a global
> we put in for all subsequent devices.

move the * to the end.



More information about the Rancid-discuss mailing list