title: How Can I Tell what Username RSH sends from SUA?
body: <p>I am on a Windows Vista 64-bit Enterprise machine with Subsystem for Unix Applications installed and the applications downloaded. I am attempting to use RSH to connect to a FreeBSD server. The command I would like to execute is:</p>
  
  <pre><code>rsh host.suffix1.company.com command
  </code></pre>
  
  <p>The .rhosts file in my home directory on host.suffix1.company.com looks like this:</p>
  
  <pre>
  + myusername
  + mydomain\myusername
  + mydomain/myusername
  + myusername@mydomain
  + +
  mycomputer.suffix2 myusername
  mycomputer.suffix2 +
  mycomputer.suffix2.company.com myusername
  mycomputer.suffix2.company.com +
  </pre>
  
  <p>I know + + is bad, but let's ignore that for now. When I run this:</p>
  
  <pre>
  rsh host.suffix1.company.com command
  </pre>
  
  <p>I get the following error:</p>
  
  <pre>
  rshd: Login incorrect.
  </pre>
  
  <p>However, when I run</p>
  
  <pre>
  rsh -l myusername host.suffix1.company.com command
  </pre>
  
  <p>this works flawlessly. What I'd like to know is:</p>
  
  <ol>
  <li>What is SUA sending as the username when I don't specify it via -l?</li>
  <li>How can I change what SUA is sending?</li>
  </ol>
  
  <p>I'm assuming that here SUA is sending some form of mydomain\myusername, but I'm wondering what other entries I might need to make to the rhosts file to allow this and why the + + isn't allowing this?</p>