chrpinedo / rancid-cisco-sb

rancid-cisco-sb
26 stars 25 forks source link

Add support for alternate SSH ports #4

Closed engageant closed 8 years ago

engageant commented 10 years ago

Is it possible to add support for alternate SSH ports as defined in .cloginrc? It looks like this may be there for telnet, but I can't seem to modify it for SSH. For example...if:

add method sg300.foo.com {ssh:2222}

is in .cloginrc, csblogin should add -p 2222 to the ssh arguments.

Thanks!

chrpinedo commented 8 years ago

I have prepared one patch but I can't test it with real equipments. Could you test it and provide me with some feedback?

add method test.example.com        {ssh:2222}
engageant commented 8 years ago

Apologies but I no longer have access to any Cisco SMB devices to test with.

On Fri, Sep 18, 2015, 6:40 PM chrpinedo notifications@github.com wrote:

I have prepared one patch but I can't test it with real equipments. Could you test it and provide me with some feedback?

  • Configure the switch with the desired ssh port

add method test.example.com {ssh:2222}

— Reply to this email directly or view it on GitHub https://github.com/chrpinedo/rancid-cisco-sb/issues/4#issuecomment-141584973 .

chrpinedo commented 8 years ago

Apologies for moving this issue so late :) Since I don't have also Cisco SMB devices, I will try to verify that with this patch rancid tries to establish a remote connection with port TCP/2222 and if it is right I would include the patch. Thanks @engageant !