MobaXterm connects to Ubuntu via RDP

RDP, FTP and SSH basics

  • RDP, FTP and SSH are commonly used remote connection protocols in computer networks for remote access and file transfer between different computers.
  1. RDP (Remote Desktop Protocol) Remote Desktop Protocol : RDP is a protocol developed by Microsoft to remotely control other computers on the Windows operating system. With RDP, users can connect to a remote computer over the Internet or a local area network and operate as if they were using that computer locally. RDP can be used in scenarios such as technical support, remote management, and remote office.

  2. FTP (File Transfer Protocol) File Transfer Protocol : FTP is a standard network protocol for transferring files between computers. It allows users to transfer files between a client and a server over the Internet or a local area network. Users can connect to the FTP server through the FTP client, and upload or download files.

  3. SSH (Secure Shell) Secure Shell Protocol : SSH is an encrypted network protocol used to establish a secure remote connection in an insecure network. It provides encryption and authentication mechanisms to ensure the security of remote connections. SSH is commonly used to remotely log in to servers or other network devices and execute commands and file transfers in a secure encrypted channel.

Summarize:

  • RDP is used to remotely control Windows computers and other Linux-based systems.
  • FTP is used to transfer files between computers.
  • SSH is used for secure remote login and command execution.

Connect to Ubuntu via RDP

Ubuntu install RDP

  • To enable RDP on Ubuntu, you usually need to install an RDP-capable desktop environment, such as Xfce or Xrdp. Here are the general steps for setting up RDP on Ubuntu:
    Of course, no problem!
  1. Install Xrdp (X Remote Desktop Protocol):
sudo apt install xrdp
  1. Start the Xrdp service:
sudo systemctl enable xrdp --now
  • After completing these steps, the Ubuntu system has accepted RDP connections. It can be connected using an RDP client (MobaXterm) by providing the IP address or hostname of the Ubuntu machine.

Open RDP default port

  • Port 3389 of the firewall is opened to allow remote desktop connections (RDP connections).
  1. First, make sure you have firewall tools installed ufw. If it is not installed, you can install it with the following command:

    sudo apt update
    sudo apt install ufw
    
  2. Next, check the firewall status to make sure it is active:

    sudo ufw status
    
    • If the firewall is currently inactive, it can be enabled by running:
    sudo ufw enable
    
  3. Open port 3389 to allow remote desktop connections:

    sudo ufw allow 3389
    
    • Make sure port 3389 has been successfully added to the firewall rules.
  4. Finally, check the firewall rules to make sure port 3389 is allowed:

    sudo ufw status
    

    The content of the output:

    To                         Action      From
    --                         ------      ----
    OpenSSH                    ALLOW       Anywhere
    3389                       ALLOW       Anywhere
    OpenSSH (v6)               ALLOW       Anywhere (v6)
    3389 (v6)                  ALLOW       Anywhere (v6)
    
  • You can also use 1panel to operate

Connect using MobaXterm

  • To download and install MobaXterm, please use Baidu yourself, so I won’t go into details here!
  • Open the session, select the RDP connection method, and enter the remote address and user name.
  • remember to be open3389
    insert image description here

Guess you like

Origin blog.csdn.net/yang2330648064/article/details/131485033