<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Courier New, Courier, monospace">Hello everyone,<br>
First of all, I am not sure if this is the right place to ask questions.<br>
<br>
I am having an hard time configuring rancid to ssh into a zebra
router running on an non-default SSH port.<br>
According to the manual, this works fine for telnet, but I see no
reference in regards to SSH.<br>
</font><br>
<pre><i> </i><i><b>add</b></i><i> </i><i><b>method</b></i><i> </i><i><b><router</b></i><i> </i><i><b>name</b></i><i> </i><i><b>glob></b></i><i> </i><i><b>{ssh}</b></i><i> </i><i><b>[{...}]</b></i><i>
Defines, in order, the connection methods to use for a device
from the set {ssh, telnet, rsh}. Method telnet may have a
suffix, indicating an alternate TCP port, of the form ":port".
Note: Different versions of telnet treat the specification of a
port differently. In particular, BSD derived telnets do not do
option negotiation when a port is given. Some devices, Extreme
switches for example, have undesirable telnet default options
such as linemode. In the BSD case, to enable option negotiation
when specifying a port the method should be "{<a class="moz-txt-link-freetext" href="telnet:-23">telnet:-23</a>}" or
you should add "mode character" to .telnetrc. See </i><i><b>telnet(1)</b></i><i> for
more information on telnet command-line syntax, telnet options,
and .telnetrc.
Example: add method * {ssh} {<a class="moz-txt-link-freetext" href="telnet:-3000">telnet:-3000</a>} {rsh}</i>
</pre>
<font face="Courier New, Courier, monospace">I have tried without
success:<br>
<i>add</i><i> method hostname {ssh: 2222}</i><i><br>
</i><i>and also adding the host with the correct port into </i><i>.ssh/config</i><br>
<br>
Results:<br>
clogin error: Error: Connection Refused (ssh):<br>
<br>
Do you know if rancid supports logging in via SSH into a non-default
port?<br>
Thanks for your time<br>
</font>
<div class="moz-signature">-- <br>
<!--?xml version="1.0" encoding="UTF-8"?-->
<!--This file was converted to xhtml by LibreOffice - see http://cgit.freedesktop.org/libreoffice/core/tree/filter/source/xslt for the code.-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title xml:lang="en-US">- no title specified</title>
<meta name="DCTERMS.title" content="" xml:lang="en-US">
<meta name="DCTERMS.language" content="en-US"
scheme="DCTERMS.RFC4646">
<meta name="DCTERMS.source"
content="http://xml.openoffice.org/odf2xhtml">
<meta name="DCTERMS.issued"
content="2014-02-07T17:21:06.038206181" scheme="DCTERMS.W3CDTF">
<meta name="DCTERMS.modified"
content="2014-02-07T17:21:39.240620750" scheme="DCTERMS.W3CDTF">
<meta name="DCTERMS.provenance" content="" xml:lang="en-US">
<meta name="DCTERMS.subject" content="," xml:lang="en-US">
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"
hreflang="en">
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/"
hreflang="en">
<link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/"
hreflang="en">
<link rel="schema.DCAM" href="http://purl.org/dc/dcam/"
hreflang="en">
<style type="text/css">
@page { }
table { border-collapse:collapse; border-spacing:0; empty-cells:show }
td, th { vertical-align:top; font-size:12pt;}
h1, h2, h3, h4, h5, h6 { clear:both }
ol, ul { margin:0; padding:0;}
li { list-style: none; margin:0; padding:0;}
<!-- "li span.odfLiEnd" - IE 7 issue-->
li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
span.footnodeNumber { padding-right:1em; }
span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; }
* { margin:0;}
.P1 { font-size:12pt; font-family:Times New Roman; writing-mode:page; margin-top:0in; margin-bottom:0in; }
.P2 { font-size:12pt; margin-bottom:0in; margin-top:0in; font-family:Courier New, Courier, monospace; writing-mode:page; }
.P3 { font-size:12pt; margin-bottom:0in; margin-top:0in; font-family:Courier New, Courier, monospace; writing-mode:page; font-weight:bold; }
<!-- ODF styles with no properties representable as CSS -->
{ }
</style>
<p class="P2">Kind regards / Met vriendelijke groet / Saludos,</p>
<p class="P3">Ricardo Ferreira</p>
<p class="P3">Core IP Network</p>
<p class="P2">Elephant Talk Communications</p>
<p class="P1"> </p>
</div>
</body>
</html>