[rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid?

Lukasz Sokol el.es.cr at gmail.com
Wed Jun 3 07:48:24 UTC 2015


On 02/06/15 22:28, heasley wrote:
> Tue, Jun 02, 2015 at 12:21:34PM +0100, Lukasz Sokol:
>> Hi,
>> I dug : http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003604.html
>>
>> and tried adding that to my rancid (2.3.8 from Debian packages) .cloginrc,
>>
>> but my mtlogin still tries connecting to port 22 :
>>
> ...
> 
>> Can I try to teach mtrancid/mtlogin to spec a non-standard port?
> 
> install rancid 3.2.

i see, anyone hosting packages for Debian ? :)

> 
> also, you probably just want {ssh:port} for ssh.  -port is a telnetism.

that isn't working either, as expected:

~$ cat .cloginrc 
add user * username
add password * r4n60mk3y57r0k35
add method * ssh
add identity * /var/lib/rancid/.ssh/id_ssa_for_mt_backup
add method hostname {ssh:65122}
~$ bin/mtlogin hostname
hostname
spawn ssh -i /var/lib/rancid/.ssh/id_ssa_for_mt_backup -c 3des -x -l username+ct hostname
ssh: connect to host hostname port 22: Connection refused
...

Thanks anyway,

Lukasz



More information about the Rancid-discuss mailing list