Mailing List Archive

Issue with custom ports
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

Cheers,

Craig
Re: Issue with custom ports [ In reply to ]
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?

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Issue with custom ports [ In reply to ]
On 15 December 2017 at 20:01, heasley <heas@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
don't want to comment it out and disrupt other hosts. Line 680 is a global
we put in for all subsequent devices.
Re: Issue with custom ports [ In reply to ]
Wed, Dec 20, 2017 at 11:28:07AM +0000, Craig Hopkins:
> On 15 December 2017 at 20:01, heasley <heas@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.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Issue with custom ports [ In reply to ]
On 20 December 2017 at 15:17, heasley <heas@shrubbery.net> wrote:

> Wed, Dec 20, 2017 at 11:28:07AM +0000, Craig Hopkins:
> > On 15 December 2017 at 20:01, heasley <heas@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.
>

Ta, that fixed it