[rancid] Setup SSH login method on a non-default port

Paul Thornton prt at prt.org
Mon Aug 4 14:59:57 UTC 2014


On 04/08/2014 14:16, Ricardo Ferreira wrote:

> I have tried without success:
> /add//method hostname {ssh: 2222}//
> //and also adding the host with the correct port into //.ssh/config/
>
> Results:
>   clogin error: Error: Connection Refused (ssh):
>
> Do you know if rancid supports logging in via SSH into a non-default port?
> Thanks for your time

I think you need to have this configured like:

add method      router.hostname                ssh:2222

(no space between the ssh: and the port number) and it should work.

Paul.


More information about the Rancid-discuss mailing list