<div dir="ltr">In case your password has non-alphanumeric characters in it, try enclosing the variable substitution on the shell in single or double quotes. You can rule out if that is your issue by temporarily setting the password to just a random string of only alphanumeric [A-Za-z0-9]. In my experience passwords with all kinds of characters will be properly quoted and used by clogin when they are set in {} inside .cloginrc .<div>-andreas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 2, 2023 at 10:10 PM Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu">weylin@bu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-4209646046908338679">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-4209646046908338679WordSection1">
<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-ctr,aes128-cbc,3des-cbc,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%">
<tbody>
<tr>
<td width="13%" valign="top" style="width:13%;border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(204,204,204);padding:11.25pt 0in 0in">
<p class="MsoNormal">
<span style="color:rgb(0,32,96)"><img width="66" height="30" style="width: 0.6875in; height: 0.3125in;" id="m_-4209646046908338679Picture_x0020_1" src="cid:187e274ceb94ce8e91" alt="signature_1593189312"></span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal">
<span style="color:rgb(0,32,96)"> </span><span style="font-size:12pt"><u></u><u></u></span></p>
</td>
<td width="86%" valign="top" style="width:86%;border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(204,204,204);padding:11.25pt 0in 0in 7.5pt">
<p class="MsoNormal">
<b><span style="color:rgb(0,32,96)">Weylin Piegorsch </span></b><span style="color:rgb(0,32,96)">| </span><span style="font-size:10pt;color:rgb(0,32,96)"> Manager, Network Engineering</span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal">
<span style="font-size:10pt;color:rgb(0,32,96)">Boston University Information Services & Technology<br>
<a href="mailto:weylin@bu.edu" target="_blank"><span style="color:rgb(5,99,193)">w</span><span style="font-size:11pt;color:rgb(5,99,193)">eylin</span><span style="color:rgb(5,99,193)">@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:rgb(149,79,114)">bu.edu/tech</span></a></span><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal">
<b><span style="font-size:10pt;color:rgb(0,32,96)">Listen. Learn. Lead.</span></b><span style="font-size:12pt"><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>
</div>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@www.shrubbery.net" target="_blank">Rancid-discuss@www.shrubbery.net</a><br>
<a href="https://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">https://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</div></blockquote></div>