<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">This is fairly bizarre.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">We recently setup Cygwin and sshd on one of our Windows servers to allow one of our Linux (RHEL6) servers to call a bat file on the Windows server.&nbsp;&nbsp;&nbsp; Since this will be automated from the Linux side I setup standard ssh trust from the
 Linux user to a Windows users.&nbsp;&nbsp; Testing the trust verified we can execute Windows bat files.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The problem is that there is a specific bat file that is failing when the command it calls tries to an application level (i.e. not OS level login) but appears to be running the other commands in the bat file properly.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The weirdness is that this failure only occurs when we call it&nbsp; using ssh trust to make the connection.&nbsp; If we make the connection without a trust so that it prompts for the OS level password the bat file then executes correctly including
 its application level login.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">This suggests there is some environmental difference when ssh logs in with a password vs when it connects with a trust.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">To reiterate the &#8220;login&#8221; that is failing is something with the application not the OS user.&nbsp;&nbsp; The OS user works either way.&nbsp; Calling the bat file works either way &#8211; it is only this application &#8220;login&#8221; that is failing within the bat file
 when doing trust.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I also found sshpass allows one to feed the OS level password to the ssh call and using that also works when I call the bat file.&nbsp;&nbsp; This reinforces the idea of an environmental difference between password login and trust connection.&nbsp;
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Has anyone seen this kind of behavior before and if so can you share what you did to resolve it for trusts?<o:p></o:p></p>
</div>
<p style="font-size:10pt; line-height:10pt; font-family: 'Arial','times roman',serif;">
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information
 is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you
</p>
<span style="padding-top:10px; font-weight:color:#CC0000; font-size:10pt; font-family: 'Arial',Arial,sans-serif; ">
<p></p>
</span><br>
<br>
<div></div>
</body>
</html>