add debugging to the clogin script <br><br>On Wednesday, May 3, 2023, Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu">weylin@bu.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div>
<p class="MsoNormal">Using SSH, works fine. Using clogin with the same username/password using the -u and -p flags, can’t login.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table border="0" cellspacing="0" cellpadding="0" align="left" width="98%" style="width:98.0%">
<tbody>
<tr>
<td width="13%" valign="top" style="width:13.0%;border:none;border-top:solid #cccccc 1.0pt;padding:11.25pt 0in 0in 0in">
<p class="MsoNormal">
<span style="color:#002060"><img width="66" height="30" style="width:.6875in;height:.3125in" src="cid:image001.jpg@01D97DD9.FB5558B0" alt="signature_1593189312"></span><span style="font-size:12.0pt"><u></u><u></u></span></p>
<p class="MsoNormal">
<span style="color:#002060"> </span><span style="font-size:12.0pt"><u></u><u></u></span></p>
</td>
<td width="86%" valign="top" style="width:86.0%;border:none;border-top:solid #cccccc 1.0pt;padding:11.25pt 0in 0in 7.5pt">
<p class="MsoNormal">
<b><span style="color:#002060">Weylin Piegorsch </span></b><span style="color:#002060">| </span><span style="font-size:10.0pt;color:#002060"> Manager, Network Engineering</span><span style="font-size:12.0pt"><u></u><u></u></span></p>
<p class="MsoNormal">
<span style="font-size:10.0pt;color:#002060">Boston University Information Services & Technology<br>
<a href="mailto:weylin@bu.edu" target="_blank"><span style="color:#0563c1">w</span><span style="font-size:11.0pt;color:#0563c1">eylin</span><span style="color:#0563c1">@bu.edu</span></a> | 617.353.8128 | <a href="http://www.bu.edu/tech" title="http://www.bu.edu/tech" target="_blank"><span style="color:#954f72">bu.edu/tech</span></a></span><span style="font-size:12.0pt"><u></u><u></u></span></p>
<p class="MsoNormal">
<b><span style="font-size:10.0pt;color:#002060">Listen. Learn. Lead.</span></b><span style="font-size:12.0pt"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Aaron Dudek <<a href="mailto:adudek16@gmail.com" target="_blank">adudek16@gmail.com</a>> <br>
<b>Sent:</b> Wednesday, May 3, 2023 1:12 PM<br>
<b>To:</b> Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu" target="_blank">weylin@bu.edu</a>><br>
<b>Cc:</b> <a href="mailto:rancid-discuss@www.shrubbery.net" target="_blank">rancid-discuss@www.shrubbery.<wbr>net</a><br>
<b>Subject:</b> Re: [rancid] Unable to Login via clogin<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif">what happens if you try this from the cmd line?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif">ssh -2 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -c aes128-ctr,aes192-ctr,aes256-<wbr>ctr,aes128-cbc,3des-cbc,<wbr>aes192-cbc,aes256-cbc -x -l weylin my-switch<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif">maybe add a couple of -v to get debug data.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, May 3, 2023 at 1:10 AM Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu" target="_blank">weylin@bu.edu</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">Anyone know what I’m doing wrong here? I’ve verified password and devices names are correct, password has nothing but alphanumerics, and “ssh weylin@my-switch” login works fine
from the rancid account on the same server.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">[rancid@nsgv-prod-59 ~]$ read passwd<u></u><u></u></p>
<p class="MsoNormal">***********redacted<u></u><u></u></p>
<p class="MsoNormal">[rancid@nsgv-prod-59 ~]$ clogin -u weylin -p $passwd my-switch<u></u><u></u></p>
<p class="MsoNormal">my-switch<u></u><u></u></p>
<p class="MsoNormal">spawn ssh -2 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -c aes128-ctr,aes192-ctr,aes256-<wbr>ctr,aes128-cbc,3des-cbc,<wbr>aes192-cbc,aes256-cbc -x -l weylin
my-switch<u></u><u></u></p>
<p class="MsoNormal">Password:<u></u><u></u></p>
<p class="MsoNormal">Password:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Error: Couldn't login: my-switch<u></u><u></u></p>
<p class="MsoNormal">[rancid@nsgv-prod-59 ~]$ clogin -V<u></u><u></u></p>
<p class="MsoNormal">rancid 3.4.1<u></u><u></u></p>
<p class="MsoNormal">[rancid@nsgv-prod-59 ~]$<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<table border="0" cellspacing="0" cellpadding="0" align="left" width="98%" style="width:98.0%">
<tbody>
<tr>
<td width="13%" valign="top" style="width:13.0%;border:none;border-top:solid windowtext 1.0pt;padding:11.25pt 0in 0in 0in;border-color:currentcolor currentcolor">
<p class="MsoNormal">
<span style="color:#002060"><img border="0" width="66" height="30" style="width:.6875in;height:.3125in" src="cid:image001.jpg@01D97DD9.FB5558B0" alt="signature_1593189312"></span><u></u><u></u></p>
<p class="MsoNormal">
<span style="color:#002060"> </span><u></u><u></u></p>
</td>
<td width="86%" valign="top" style="width:86.0%;border:none;border-top:solid windowtext 1.0pt;padding:11.25pt 0in 0in 7.5pt;border-color:currentcolor currentcolor">
<p class="MsoNormal">
<b><span style="color:#002060">Weylin Piegorsch </span></b><span style="color:#002060">| </span><span style="font-size:10.0pt;color:#002060"> Manager, Network Engineering</span><u></u><u></u></p>
<p class="MsoNormal">
<span style="font-size:10.0pt;color:#002060">Boston University Information Services & Technology<br>
<a href="mailto:weylin@bu.edu" target="_blank"><span style="color:#0563c1">w</span><span style="font-size:11.0pt;color:#0563c1">eylin</span><span style="color:#0563c1">@bu.edu</span></a> | 617.353.8128 | <a href="http://www.bu.edu/tech" title="http://www.bu.edu/tech" target="_blank"><span style="color:#954f72">bu.edu/tech</span></a></span><u></u><u></u></p>
<p class="MsoNormal">
<b><span style="font-size:10.0pt;color:#002060">Listen. Learn. Lead.</span></b><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">______________________________<wbr>_________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@www.shrubbery.net" target="_blank">Rancid-discuss@www.shrubbery.<wbr>net</a><br>
<a href="https://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">https://www.shrubbery.net/<wbr>mailman/listinfo/rancid-<wbr>discuss</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>