restart the firewall: systemctl restart firewalld.as root, start vnc for the user, systemctl start as root, open the vnc ports: firewall-cmd -permanent -add-port=5901-5999/tcp.as the user, create a password, vncpasswd (this will be the password to use with the client).as root, edit /etc/tigervnc/ers and add display=user for each user allowed to connect (root is not recommended) in my case :1=user1, corresponding to vnc port 5901.If you want to restrict which IP accepts connections, add a line interface=x.x.x.x where x.x.x.x is an IP for your host. If you uncomment localhost you'll need to establish a secure tunnel. as root, edit /etc/tigervnc/vncserver-config-defaults and add session=gnome at the bottom (I use gnome).I'm not sure which vnc you installed, but with tigervnc, here's what I did: In my steps below, I show how to open the vnc ports and use a tunnel. I suspect you still have a firewall running or configured use of localhost but didn't use a tunnel. And indeed it is, I just can't find a relation, since vnc has been updated and the configuration is not the same (that is, to start the server, I can no longer put the command "vncserver"), and I assume that the solution will not be the same Maybe it looks like a duplicate question from the following forum. I also have these ports assigned, which tell me that the server is listening andres]# netstat -tunlp | grep 5901 Process: 978 ExecStart=/usr/libexec/vncsession-start :1 (code=exited, status=0/SUCCE>ĬGroup: 994 /usr/sbin/vncsession andres :1 andres]# systemctl status - Remote desktop service (VNC)Īctive: active (running) since Mon 13:21:07 EST 1h 7min ago I know that the server is running correctly, because I get the following output. So disable the firewall and Selinux)on both virtual machines, however the problem persists. ![]() I have consulted in some forums, and it is mentioned that it is a firewall problem that does not let the communication pass. In the server I execute the following instruction vncviewer localhost:5901 The problem arises when I want to connect from another virtual machine (Fedora), the server rejects the connection and gives the following error: Once this is done, the server is working without problem. I have done all the configuration steps, which are in this file, (which by the way is the one that vnc recommends using, since I think vnc was updated and the configuration method is not the same as before). I recently installed a vnc server on a Centos8 virtual machine. I will try to give as many details as possible. I would like you to help me with the following problem.
0 Comments
Leave a Reply. |