Thursday 18 April 2013

xauth: (stdin):1: bad display name "myserver:3" in "add" command

 When I try to start vncserver with i got an error
xauth: (stdin):1:  bad display name "myserver:3" in "add" command
Cause
  • 'UseLocalhost' value is set to 'no' on /etc/ssh/sshd_config
  • server name is not registered in the '/etc/hosts' file.
Solution
  • Set 'UseLocalhost' to 'yes' in the SSH server configuration file. 
  • Add the host name of the server in '/etc/hosts'

4 comments:

shashi said...

Thank you Vanita! It worked for me. I was searching the right solution for this error in the blogs and no one has explained that why this bad display name is coming. All were vague answer. And, I was suspecting your solution as well. Thanks again!

Unknown said...

Welcome :)

CafeiN said...
This comment has been removed by the author.
CafeiN said...

thx a lot , saved lots of time