VNC connection from Windows 7 to CentOS 6.5 for one user not authenticating
Hello everyone,
I have installed VNC (tigervnc-server.x86_64) on CentOS 6.5 successfully. These are the entries of /etc/sysconfig/vncservers
VNCSERVERS="1:user"
VNCSERVERARGS[1]="-geometry 1280x768"
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1280x768"
These are my firewall entries allowing VNC on CentOS 6.5:
[root@server ~]# cat /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5902,6001:6002 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Yes, I know it's a bad idea to connect as root but I created it as a test.
I have set the vncpasswd for both accounts and made sure the vncserver is running.
Originally both users were able to connect fine from a Windows 7 system with VNC Viewer 5.2.1 on port on port 5901 for the user account and 5902 for the root account. However, both computers rebooted and now I'm unable to connect with the user account. I can connect fine with root account but the user account.
I have ranned the vncserver :1 command for the user account and I receive this message:
[user@server .vnc]$ vncserver :1
A VNC server is already running as :1
[user@server .vnc]$
I have checked the logs but in /home/user/.vnc/server.local:1.log for anything obvious but nothing get's logged.
I have eliminated this being an firewall issue by stopping iptables. The errors that I receive on Windows 7 VNC Viewer are "Authentication failure" and "Too many security failures"
To summarize, I'm able to connect with the root account on port 5902 but not as the regular user on 5901. This happened after a reboot. Thanks in advance for your advise on this issue.
Last edited by student23; 10-22-2014 at 04:16 AM.
|