Discussion:
[rancid] Issue with custom ports
Craig Hopkins
2017-12-15 15:45:54 UTC
Permalink
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
heasley
2017-12-15 20:01:46 UTC
Permalink
Post by 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?
Craig Hopkins
2017-12-20 11:28:07 UTC
Permalink
Post by heasley
Post by 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.
heasley
2017-12-20 15:17:10 UTC
Permalink
Post by Craig Hopkins
Post by heasley
Post by 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.
Post by Craig Hopkins
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.
Craig Hopkins
2017-12-20 15:24:07 UTC
Permalink
Post by Craig Hopkins
Post by Craig Hopkins
Post by heasley
Post by 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.
Post by Craig Hopkins
don't want to comment it out and disrupt other hosts. Line 680 is a
global
Post by Craig Hopkins
we put in for all subsequent devices.
move the * to the end.
Ta, that fixed it

Loading...