Looking to configure a remote connection on CentOS 7

Solved
tom45 -  
avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   -
Hello

I currently have a PC running Windows 10 and I would like to take control of a PC running CentOS 7 Linux.

I'm trying to configure everything, but I'm not quite sure how to go about it.

I tried using TigerVNC server, but to no avail; I think I don’t quite understand how to configure it all??

I am not used to command lines.

Can you please help me?

Thank you.

9 answers

  1. avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   4 511
     
    Hello,

    > I would like to take control of a Linux CentOS 7 PC

    More information is needed about this system.

    How was it installed?
    Where is the computer located, is it a VPS or a computer at your place?

    I don't really see the point of SSH/VNC for a computer at home, and if it's a server (dedicated or VPS), chances are it doesn't come with a desktop environment.

    For desktop use, CentOS is probably not the choice I would have made.
    0
  2. tom45
     
    Hello

    thank you for your response

    eventually I would like to put this into production, I have a Windows PC to manage my work and a Linux PC for testing.

    they will be on a corporate network without web access.

    to do the tests I connected to a local network with IPs that can ping each other.

    I wanted to do a test of RDP using remote desktop tools and xrdp

    I installed xrdp following tutorials I found, it does not modify any configurations, it just enters the IP and it works.

    for your information, my firewall is disabled.

    I am testing and it does not work for me, I do not understand

    I had tried with tigervpn but for now I just want to do a simple test

    for your information, I have gnome installed on my centos
    0
  3. avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   4 511
     
    > For your information, I have Gnome installed on my CentOS

    1) Before looking into remote access, can you confirm that when a screen is connected to this computer, the Gnome login panel is displayed correctly?

    2) Can you also confirm that you are able to access this CentOS system via SSH?

    If yes, after installing xrdp, make sure that the service is running.
    In SSH:
    sudo systemctl enable xrdp --now


    Then, check that the service is running and does not show any errors.
    3) Please attach the result of this command here (for example, with a screenshot)
    sudo systemctl status xrdp


    Finally, you mentioned that you have no firewall, which we will verify.
    4) Can you attach the result of the command:
    sudo firewall-cmd --state


    5) Can you attach the result of the command:
    sudo ufw status
    0
  4. tom45
     
    1 yes

    ssh root@192.168.10.1's password:
    Last login: Thu Jan 14 19:13:45 2021

    2 enable ok
    I ran a systemctl status and it is in running active

    [root@test09 xrdp]# systemctl status xrdp
    ● xrdp.service - xrdp daemon
    Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
    Active: active (running) since Thu. 2021-01-14 19:11:32 CET; 1h 58min ago
    Docs: man:xrdp(8)
    man:xrdp.ini(5)
    Main PID: 1429 (xrdp)
    CGroup: /system.slice/xrdp.service
    └─1429 /usr/sbin/xrdp --nodaemon

    Jan 14 19:11:32 test09 systemd[1]: Started xrdp daemon.
    Jan 14 19:11:32 test09 xrdp[1429]: (1429)(140621636811200)[INFO ] starting xrdp with pid 1429
    Jan 14 19:11:32 test09 xrdp[1429]: (1429)(140621636811200)[INFO ] address [0.0.0.0] port [3389] mode 1
    Jan 14 19:11:32 test09 xrdp[1429]: (1429)(140621636811200)[INFO ] listening to port 3389 on 0.0.0.0
    Jan 14 19:11:32 test09 xrdp[1429]: (1429)(140621636811200)[INFO ] xrdp_listen_pp done

    4 I confirm not running

    5 the last command returns unknown command
    0
  5. avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   4 511
     
    Everything seems fine, the connection should work correctly. There is indeed no additional configuration to be done.

    1) Can you confirm that your Windows 10 computer is on the same LAN and subnet and has an IP in the form of 192.168.10.xxx?

    2) What error do you get when trying to open the RDP connection from Windows 10, targeting the computer 192.168.10.1?
    0
  6. tom45
     
    Hello

    I haven't changed or restarted anything, and this morning everything works in RDP, but I have a question.

    I would like to take control and have the user in front see what I am doing on the screen, which doesn't seem to work with RDP??

    I actually think I need RDP shadow, right?
    0
  7. tom45
     
    I can't configure the shadow

    Do you have a simple solution to set up remote access on my machine?
    0
  8. avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   4 511
     
    Hello,

    I don't know if it's possible with RDP (xrdp), but with VNC it is possible to configure the server to display the screen (the default graphical session) rather than creating a new "internal" (virtual) graphical session.
    https://www.howtoforge.com/tutorial/how-to-start-a-vnc-server-for-the-actual-display-scraping-with-tigervnc/
    0
    1. tom45
       
      It seems to correspond only under CentOS; I don't have the tigervnc-scraping-server.
      0
    2. tom45
       
      It works perfectly with yum install tigervnc-server

      thank you very much for your help

      last question, he talks about securing the connection via SSH, what exactly does that mean?
      0
      1. avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   4 511 > tom45
         
        VNC has no encryption, so it is not recommended to use it over the Internet.
        One solution to this is to use a tunnel, such as an SSH tunnel, SSL, or a VPN.
        0
  9. tom45
     
    Thank you, I'm fine, so I'm going to use a VPN tunnel which will secure the connection. I appreciate it anyway, the topic can be considered closed.

    Have a good evening.
    0
    1. avion-f16 Posted messages 19182 Registration date   Status Contributor Last intervention   4 511
       
      In this case, a small clarification:

      I am indeed referring to a VPN that you host yourself and in which both machines (the VNC client and the VNC server) are located. The VNC client has an encrypted tunnel with the VPN server. The VNC server also has an encrypted tunnel with the VPN server. Therefore, both can communicate, the traffic being visible within the VPN but not outside.

      A "public" VPN is a VPN that adds encryption only on part of the path (between your PC and the VPN server) but not beyond, thus it does not solve any security issues.

      Thank you, have a great weekend!
      0