title: JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge
body: <p>When I want to access EJB on remote wildfly server from a different server, i get following error. </p>
  
  <pre><code>Error: Authentication failed: all available authentication mechanisms failed:
     JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge [Caused by java.io.FileNotFoundException: /../wildfly/standalone-/tmp/auth/X.challenge (No such file or directory)]
     DIGEST-MD5: Server rejected authentication
  </code></pre>
  
  <p>If i access EJB within the server, i don't get any auth error. I use following to access server;</p>
  
  <pre><code>http-remoting://server1:8080
  </code></pre>
  
  <p>Basically if i call this in server1, there is no problem. If i call this from server2, i get the error. I assume it looks for auth file in server2 which exists in server1.</p>
  
  <p>I am not sure if I have to make some config on EJB or wildfly to enable access from different server. I did go through every steps which are available online but clearly i am missing something. </p>