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

Alan McKinnon alan.mckinnon at gmail.com
Wed Jun 3 07:56:40 UTC 2015


On 03/06/2015 09:48, Lukasz Sokol wrote:
> 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

These 4 override everything below as * matches everything. The rule is
"first match wins", so move them t the end of the file where they will
act as a default



> 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
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> 


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list