I have a CentOS 6.5 server with the following situation:
I can ssh to the root user of this server from a Mac OS X machine. It connects relatively quickly, and allows me to fire off xterm sessions.
I can ssh to a different account on this same server from the same Mac OS X machine, but it takes awhile to connect and does not let me fire off xterm sessions ( with the rather common "xterm Xt error: Can't open display: localhost:10.0" error ).
What I am having a hard time with is why root works perfect, but my other user does not. In other words, 1. Why is the "root" user speedy on the ssh connection, but my other user ( "wmsodbc" ) is not? 2. Why does the "root" user allow me to fire off xterm windows, but the other user does not?
Note that I connect to the machine both times in the exact same way, with the exact same ssh configuration. The only thing changes is the user ( "ssh root@server" or "ssh wmsodbc@server" ).
I imagine it is a problem with one of the following, but I don't know how to figure out which:
- Mac OS X setup
- CentOS 6.5 general server setup
- The setup of my other user ( the one that does not work ) is wrong somehow
Note that I copied this user ( wmsodbc ) directly from another, older, RedHat Enterprise server, and I don't have this problem at all on that server.
Also, I think I actually found the reason for the "slower connection" when I enabled -vvv debugging when doing the ssh connection: xauth is timing out when it tries to lock the file. Still would not mind help on this issue, but I am also going to search for why xauth times out - I see lots of references to that problem via Google.