Ubuntu rdp connect to windows


The Remote Desktop Protocol (RDP) allows users to connect to another computer across a network and take remote control over the host machine.

The remote desktop connection is possible between different platforms, e.g., Linux users are able to RDP into a Windows system and vice versa.

Learn how to RDP to a Windows PC from your Ubuntu system in minutes.

how to connect to a windows pc from ubuntu using rdp

Prerequisites

  • Ubuntu system.
  • Sudo or root privileges.
  • A remote Windows machine with network connectivity.
  • Windows firewall set to allow incoming RDP connections.
  • The user account intended for the RDP session with RDP permissions on the Windows system.

How to Connect to a Windows PC From Ubuntu

The Ubuntu (client) and Windows (host) systems must be configured before establishing an RDP connection. This configuration ensures the Windows system allows remote desktop connections and the Ubuntu client has the necessary software to initiate the connection securely.

Enable Remote Desktop Connection on the Windows Computer

Incoming RDP connections must be enabled on the Windows system. There are two ways to enable RDP in Windows.

Option 1: Enable RDP in Settings

To enable RDP in Windows settings, take the following steps:

1. Open the Windows Start menu and select Settings.

Settings in Windows start menu

Note: Alternatively, press Winkey+I to access the Settings app.

2. Select System.

Select System

3. Scroll down and locate Remote Desktop in the menu.

Choose Remote Desktop

4. Toggle the Enable Remote Desktop switch On.

Toggle the Remote Desktop switch On

5. Click Confirm.

Click Confirm

6. Close the Settings menu.

Note: When enabling RDP, ensure the user account initiating the connection has RDP permissions and the firewall allows RDP connections.

The Windows PC now accepts RDP connections.

Option 2: Enable RDP from Windows CMD

Activating RDP via the Windows Command Prompt (CMD) is useful when automating RDP setups across multiple Windows machines or creating scripts to streamline the configuration process.

To accomplish this, take the following steps:

1. Type cmd in the Windows search box.

2. Select Run as administrator to open the Command Prompt with administrative privileges.

cmd Run as an Administrator

3. The reg command modifies the Windows Registry. Enter the following command to enable RDP:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f cmd output

Warning: Exercise caution when making changes to the Windows Registry. Incorrect modifications harm your system.

4. This part is optional, but if the Windows Firewall is activated, use the following command to enable RDP connections:

netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes cmd output

Note: The user account used to establish the connection must have RDP permissions on the Windows machine, and the Windows firewall must allow RDP connections.

The Windows system is ready to accept RDP connections.

Install Desktop/GUI Environment on Ubuntu (Optional)

Users running Ubuntu Server or a minimal installation of Ubuntu without a graphical user interface (GUI) often use command-line-based RDP clients, such as FreeRDP. However, some RDP clients like Remmina do not work without a GUI.

Installing a GUI on Ubuntu, such as Ubuntu GNOME, KDE Plasma, LXDE, or XFCE, provides a more intuitive and user-friendly environment for establishing RDP connections.

To install the GNOME desktop environment:

1. Update the Ubuntu packages list:

sudo apt update

2. Enter the following command to install GNOME:

sudo apt install ubuntu-desktop -y

3. Reboot the system:

sudo reboot

Once you log in to the Ubuntu system, you are presented with a desktop environment.

Ubuntu 24.04 GNOME desktop.

Next, install and launch your preferred RDP client to connect to the Windows system.

Install Remote Desktop Client Software on Ubuntu

Linux users utilize RDP clients such as Remmina, FreeRDP, or others to facilitate an RDP connection.

The following text presents how to install remote desktop client software on Ubuntu.

Option 1: Install Remmina Client on Ubuntu

Remmina is the default RDP client on newer Ubuntu systems. To check if the Remmina client is installed, use dpkg piped with grep:

dpkg -l | grep remmina
dpkg -l | grep remmina terminal output

The system displays a list of installed Remmina packages and plugins. If the Remmina client is not installed, take the following steps:

1. Update the Ubuntu packages list:

sudo apt update

2. Install Remmina and the necessary plugins:

sudo apt install remmina remmina-plugin-rdp -y
sudo apt install remmina remmina-plugin-rdp -y terminal output

3. Launch the RDP client by entering the following command:

sudo remmina

4. Click the top left + icon to add a new connection profile.

Add a new RDP connection profile in Remmina.

5. Enter a connection profile Name. For example, Windows PC Connect.

Remmina choose Remote profile name

6. Select RDP — Remote Desktop Protocol from the Protocol dropdown menu.

Remmina Choose Remote Connection Protocol

7. Enter the IP address or hostname of the Windows machine in the Server field.

Remmina Add IP Address

Note: Find the IP address of the Windows machine using the ipconfig command. Look for the IPv4 Address under your active network connection.

8. Define the username and password for the user account you plan to use to log into the Windows machine.

Remmina Define the username and password

Note: This user should be granted RDP permissions on the Windows host.

9. Select Use client resolution or define a custom resolution in the Resolution field.

10. Leave the Colour depth set to Automatic. This preference allows the server to choose the best format based on network speed.

These are the mandatory options for initiating a standard RDP session. The Remmina client has numerous advanced settings to customize how the RDP connection is established.

11. Click Save and Connect to save the profile and connect to the Windows machine using the profile details.

Click Save and Connect in Remina

Note: If you receive a certificate warning, opt to trust the (legitimate) certificate to continue with the connection.

The remote Windows desktop is available in the Remmina dashboard.

RDP access to Windows from Ubuntu

The next time to RDP into the Windows system, launch Remmina and double-click the saved profile.

Option 2: Install FreeRDP Client on Ubuntu

FreeRDP is an open-source Remote Desktop Protocol (RDP) client that allows Ubuntu to connect to Windows using the terminal. It is often preferred over graphical clients like Remmina for its flexibility, lower resource usage, and ability to be scripted for automation or remote administration.

To install the FreeRDP client on Ubuntu:

1. Update the Ubuntu packages list:

sudo apt update

2. Install the FreeRDP client using the following command:

sudo apt install freerdp2-x11 -y
sudo apt install freerdp2-x11 -y terminal output

3. Establish the RDP connection using the following syntax:

sudo xfreerdp /v:windows_machine_ip /u:username

Replace windows_machine_ip and username with valid connection details. In this example, those are:

sudo xfreerdp /v:192.168.56.1 /u:PC

If the password /p: option is not included in the command, xfreerdp prompts for the RDP user password. This practice is more secure than entering the password within the command.

Note: To find the windows_machine_ip, run the ipconfig command. Moreover, to find username, run echo %USERNAME% in the command prompt.

Once connected via FreeRDP, the user gains access to the remote Windows system in a graphical interface.

FreeRDP connection

The xfreerdp command-line tool is part of the FreeRDP project and offers multiple options for connecting to RDP servers:

OPTION DESCRIPTION
/p:[password] Specifies the user’s password.
/domain:[yourdomain] Specifies the domain for authentication.
/f Enables fullscreen mode.
/size:[1366x768] Specifies a custom screen resolution.
/port:[4309] Specifies a port number other than the default 3389.

Ubuntu RDP to Windows: Extra Tips + Best Practices

To ensure a secure Remote Desktop Protocol (RDP) connection from Ubuntu to Windows, carefully consider performance and security settings. By optimizing hardware, network speed, and display settings, users enhance responsiveness and reduce lag during remote sessions.

The sections below offer advice on how to achieve optimal results when connecting to Windows using RDP on Ubuntu.

Minimum vs. Optimal Hardware Requirements

The RDP experience depends on bandwidth, network latency, and the capabilities of the Windows host machine. The table below outlines the minimal and optimal requirements for the Ubuntu and Windows systems:

Hardware Ubuntu Client
Minimal / Optimal
Windows Host
Minimal / Optimal
CPU Dual-core processor / Multi-core processor 1 GHz dual-core / 2.4 GHz+ multi-core
RAM 2 GB / 4 GB+ 4 GB / 8 GB+ (16 GB+ for heavy tasks)
Graphics Integrated GPU / Dedicated GPU (for graphics-intensive tasks) DirectX 12-compatible GPU / Dedicated GPU for demanding applications
Network 5 Mbps / 20 Mbps+ 5 Mbps+ / 20 Mbps+
Disk Sufficient memory for RDP client software / SSD 64 GB storage (minimum) / SSD highly recommended

Use the information in the table as a broad guideline. Actual requirements depend on the specific tasks performed during the RDP session.

Implement Security Measures

To enhance the security of an RDP session from Linux to Windows, implement security measures on the Windows side, Linux side, and the network. The lists below offer useful tips for each security segment.

Windows

  • Limit the number of user accounts that can establish an RDP connection.
  • Create dedicated accounts for RDP to restrict access to critical systems or data.
  • Enforce strong password policies for RDP user accounts.
  • Implement two-factor authentication (2FA) for RDP sessions.
  • Activate Network Level Authentication (NLA) to require authentication before establishing a session.
  • Temporarily lockout user accounts after multiple unsuccessful login attempts.

The network

  • Use a firewall to restrict RDP access to specific IP addresses.
  • Change the default RDP port (3389) to a non-standard port number to mitigate brute-force attacks.
  • Use a VPN to encrypt the data transfer between client and host machines.
  • Alternatively, use SSH port forwarding to create an encrypted tunnel for the RDP session if a VPN is not an option.

Linux

  • Regularly update the RDP Client to the latest version to benefit from security patches and improvements.
  • Disconnect from an RDP session when it is not being used and set timeouts for idle sessions.
  • Limit the number of simultaneous active sessions.

Ideal Internet Speed for RDP Connections

RDP is efficient even over slower connections. However, specific tasks require a minimal level of visual quality and responsiveness.

The table offers an overview of minimal and recommended bandwidth for general RDP tasks:

Task Minimum Bandwidth Recommended Bandwidth
Text-based tasks 1 Mbps 2 — 5 Mbps
MS Office and Web browsing 3 — 5 Mbps 10 — 15 Mbps
Design, images, and video 10 — 15 Mbps 25 — 50 Mbps+
Concurrent RDP Sessions Allocate bandwidth for each concurrent session. Allocate bandwidth for each concurrent session.

Keep in mind that apart from bandwidth, server loads, network latency, and stability affect RDP performance.

Test the RDP performance under typical work conditions and adjust RDP and network settings to balance responsiveness and quality.

Reduce Resolution and Color Depth for Performance Boost

Controlling the amount of detail an RDP client transfers over the network produces significant performance gains. Read the sections below to learn how to adjust resolution and color depth in your RDP session.

Reducing the Resolution of an RDP Session

Lowering the screen resolution or window size in RDP sessions means fewer pixels are transferred over the network. This strategy improves responsiveness and speed when bandwidth is limited.

RDP clients enable users to set the screen resolution when initiating an RDP session. For instance, with FreeRDP, use the following command to set a 1280×720 resolution:

sudo xfreerdp /v:windows_machine_ip /u:username /size:1280x720

Reducing the resolution enhances speed but also compromises visual quality.

Lowering Color Depth of an RDP Session

Color depth defines how sharply a system represents or distinguishes unique colors.

Lowering the color depth reduces the amount of data transmitted for each pixel. The session is more responsive, but colors may seem off, and gradients might lose their smoothness.

In the Remmina client, the Color depth option lets users define the color depth for the RDP session.

Remmina Color depth

A low depth works for simple tasks like text editing, but the True color setting, with 32 bits per pixel, provides the high-quality visuals required for video playback or graphic design.

Conclusion

This article explained how to use an RDP client to connect to a remote Windows PC from your Ubuntu system. Use this tool to administer remote Windows systems, provide technical support to Windows users, and operate Windows-specific tools and applications.

Next, learn how to access an Ubuntu PC via Remote Desktop from Windows.

Was this article helpful?

YesNo

Время на прочтение10 мин

Количество просмотров305K

Создавая виртуальный сервер на VPS.house, вы получаете полностью 100% готовую к использованию операционную систему Windows Server, к которому сразу же можно подключаться по сети с любого внешнего устройства по протолку RDP.

RDP (Remote Desktop Protocol) – специальный протокол, разработанный компанией Microsoft для удаленного управления ОС Windows (протокол удалённого рабочего стола). Изначально, разумеется, как и многие вещи под Windows, этот протокол разработали другие люди, но в настоящее время поддерживает его и развивает Microsoft.

Согласно условиям лицензирования, ОС Windows Server допускает по умолчанию не более 2-х одновременных подключений по RDP к серверу, если нужно больше, то понимается терминальный сервер и лицензируется либо количество пользователей, либо количество подключаемых устройств. Но, подключившись к серверу по RDP, вы также можете поставить любое удобное вам решение для удалённого управления рабочим столом: TeamViewer, RAdmin и прочие.

Данная статья описывает процесс подключения к серверу Windows по RDP с многих популярных операционных систем. Ввиду этого получилась она довольно длинной. Моментально перейти к нужному вам разделу вы можете по этому меню:

Подключение в VPS серверу из десктопной Windows

Данная инструкция проверена и работает успешно на всех популярных версиях Windows для персональных компьютеров: XP, Vista, Windows 7, 8, 8.1 и 10.

В каждой операционной системе Windows есть встроенное приложение для подключения по RDP – это программа «Подключение к удалённому рабочему столу» (Remote Desktop Connection в англоязычных ОС).
Для запуска ее зайдите по пути:

Пуск -> Программы -> Стандартные -> Подключение к удалённому рабочему столу

Если вы используете Windows 8, тогда:

Пуск -> Приложения -> Подключение к удалённому рабочему столу

Если вы используете Windows 10, тогда:

Пуск -> Все приложения (может этого пункта не быть!) -> Стандартные Windows -> Подключение к удалённому рабочему столу

Или же просто нажмите комбинацию клавиш Win+R и в открывшемся окне наберите mstsc

В открывшемся окне наберите IP-адрес вашего виртуального сервера и нажмите кнопку «Подключить». IP-адрес сервера вы можете видеть в вашем личном кабинете в разделе «Мои серверы»:

Если вы заказали сервер с 2-я или большим количеством IP-адресов, то для подключения к серверу вы можете использовать любой из них – это ни на что не влияет.

Те, кто впервые стакиваются с созданием удалённого рабочего стола, часто задаются вопросом «Зачем нужны эти IP-адреса и сколько нужно именно им», часто также путают количество IP-адресов с количеством рабочих столов или учётных записей, или полагают, что если зайти на сервер по одному адресу, то открывая браузер именно этот адрес будет браузер использовать. Нас самом же деле это всего лишь список внешних адресов, по которому можно подключиться к серверу, сама работа на сервере уже после подключения никаким образом не меняется.

Чаща всего при подключении по умолчанию настроена автоматическая передача данных из буфера обмена, а также подключаются к серверу и становятся на нём видны локальные диски устройства, с которого вы подключаетесь. При сразу после нажатия на кнопку «Подключить» вы можете увидеть уведомление о возможном вреде, который может нанести как удалённый компьютер вашему, так и ваш удалённому. Такое вполне возможно если вы подключаетесь к чужому серверу, на котором могут быть вирусы или вы подключаетесь к своему проведенному серверу с чужого заражённого ПК.

Подключаясь к только что созданному и чистому серверу можно смело отключить дальнейшие уведомления и продолжить процесс подключения.

Далее вы увидите окно с вводом авторизационных данных:

При создании каждого нового сервера система VPS.house автоматически генерирует новый уникальный пароль для него, при этом на всех серверах Windows по умолчанию остаётся имя пользователя Administrator. Пароль от сервера отображается также в личном кабинете возле вашего сервера на странице «Мои серверы»:

В целях безопасности, по умолчанию пароль от сервера скрыт и отображается только по нажатию на ссылку «Показать пароль», при этом сайт попросит вас ввести пароль от вашей учётной записи на VPS.house.

Обратите, пожалуйста, внимание на то, что очень часто при попытке подключения с Windows 7 если копировать и вставлять пароль, система показывает ошибку о неверно введённых учетных данных, тоже самое может возникать и в других версиях. Если вы с этим столкнулись, просто

введите пароль вручную

и обязательно с учётом регистра (заглавные буквы вводите заглавными, а строчные строчными и строго в английской раскладке клавиатуры).

После успешной авторизации перед началом сессии вы получите уведомление о неуспешной проверке подлинности удаленного компьютера. Причина этого уведомления в том, что сессия на стороне сервера шифруется по умолчанию с помощью SSL-сертификата, который сгенерировал сам же сервер, а не тем, что мог быть выдан авторизованным центром сертификации.

Данное уведомление не говорит о проблемах безопасности, и вы смело можете отключить его для будущих подключений к этому же серверу, отметив галочкой «Больше не выводить запрос о подключениях к этому компьютеру».

Если вы используете для работы Windows XP и при подключении система выдает ошибку с текстом «Удаленный компьютер требует проверку подлинности на уровне сети, которую данный компьютер не поддерживает», значит на ваш ПК очень сильно устарел и нужно дополнительно установить небольшое обновление, где его взять и как установить

мы подробно расписали здесь

.

Встроенная программа подключения к удалённому рабочему столу позволяет с лёгкостью передавать файлы на сервер, копируя их на вашем ПК и вставляя в любую папку уже на самом сервере и наоборот. Помимо этого, можно включить передачу на сервер практически любых USB-устройств и сетевых принтеров и сканеров.

Для включения этих возможностей перед подключением к серверу нажмите на кнопку «Показать параметры»:

Откроется режим расширенных настроек подключения к вашему VDS серверу. Перейдите на вкладку «Локальные ресурсы» и отметьте галочкой требуемые для вас устройства:

Еще одна очень полезная и популярная функция – это возможность создать готовый файл подключения (так называемый «ярлык»), в котором уже сохранены все нужные вам настройки и данные авторизации на сервере. Это особенно удобно если вы хотите дать доступ сотруднику, который не является опытным пользователем ПК.

Для этого также в расширенных настройках подключения на вкладке «Общие» введите имя пользователя (на серверах VPS.house это всегда по умолчанию Administrator), отметьте галочкой «Разрешить мне сохранять учетные данные», чтобы не приходилось вводить пароль каждый раз и, по завершению внесения всех нужных вам остальных параметров подключения (если таковые есть), нажиме кнопку «Сохранить как»:

В итоге вы получите готовый файл с подключением, который вы можете отправить вашему коллеге и тот в свою очередь подключится к серверу 2-я простыми кликами по нему мышкой.

В целях безопасности по умолчанию в данный файл не будет добавлен пароль от учётной записи, он будет запрошен при первом подключении.


Как подключиться к серверу по RDP если вы работаете с Ubuntu

Протокол подключения к уделённому рабочему столу Windows (RDP) – это закрытый протокол компании Microsoft, официальных служб под операционные системы Linux Microsoft не выпускает, но так или иначе уже давно существуют стабильно работающие решения, которые в последних редакциях Ubuntu даже включены в изначальную сборку.
Речи идет о клиенте под названием Remmina

По умолчанию если Remmina включена в вашу сборку, вы можете найти ее в Поиске по запросу «Remote Desktop Client», если ее нет, то установите ее при помощи следующих команд в Терминале.

  1. Устанавливаем пакет Remmina

    sudo apt-add-repository ppa:remmina-ppa-team/remmina-next

  2. Устанавливаем обновления

    sudo apt-get update

  3. Устанавливаем плагин протокола RDP

    sudo apt-get install remmina remmina-plugin-rdp libfreerdp-plugins-standard

  4. Если ранее у вас уже была установлена какая-либо версия Remmina или была запущена до установки, то ее необходимо перезапустить. Это лучше всего сделать перезагрузкой компьютера или с помощью команды:

    udo killall remmina

    Если после её выполнения вы получили сообщение об ошибке типа «процесс не найден», значит и так все хорошо и можно было команду и не выполнять.

В меню поиска наберите «remote desktop» или «remmina», чтобы найти установленное приложение:

Remmina позволяет добавлять и сохранять список подключений для быстрого доступа к тому или иному серверу. Для сознания нового нажмите на «+», как показано на изображении:

Заполните поля авторизационными данными, которые

указаны в вашем личном кабинете

:

На вкладке «Advanced» вы можете также указать качество подключения к серверу и детализации при передаче изображений:

После сохранения данных вы всегда сможете найти ваш сервер в списке подключений Remmina. Для подключения к серверу теперь достаточно просто кликнуть дважды мышкой по строке сервера:

Если вы подключаетесь к серверу впервые с этого приложения, то оно может показать информацию о ошибке в сертификате безопасности. Почему это происходит

мы описали выше в блоке подключения к серверу из десктопной Windows

.
Достаточно нажать «ОК» и программа продолжит подключение к вашему серверу:


Как подключиться к серверу по RDP если вы работаете с Debian

Протокол RDP (Remote Desktop Protocol) – это закрытый протокол удалённого рабочего стола Microsoft. К сожалению, они не выпускают официальных клиентов для работы подключения к серверам Windows с операционных систем, работающих на базе Linux. Однако уже довольно давно существуют стабильно работающие решения.
Одно из самых популярных – это клиент для всевозможных удалённых Remmina, именно его мы и рекомендуем использовать для включения к серверам VPS.house или любым другим под управлением ОС Windows.

  1. Указываем путь к установочным файлам

    echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee --append /etc/apt/sources.list.d/stretch-backports.list >> /dev/null

  2. Запускаем процесс установки

    sudo apt update

  3. Устанавливаем плагин протокола RDP

    sudo apt install -t stretch-backports remmina remmina-plugin-rdp remmina-plugin-secret libfreerdp-plugins-standard

Сразу после установки приложение можно найти через поиск программ:

В отличие стандартного от RDP-клиента ОС Windows, Remmina позволяет сохранять в список все свои подключения к различным серверам и осуществлять моментальный доступ к ним. Для добавления первого сервера в список нажмите «+» в левом верхнем углу:

В открывшемся окне задайте параметры подключения к вашему серверу и введите удобное для запоминания имя сервера. Все необходимые для подключения данных указаны в вашем личном кабинете:

На вкладке «Advanced» («Дополнительные») вы можете задать параметры передачи звука с сервера на ваш ПК, а также качество передаваемого изображения при подключении:

После сохранения я настроек вы увидите новую строку в списке подключений. Для начала работы с сервером достаточно просто дважды кликнуть по нему мышкой:

В момент первого подключения к серверу Remmina покажет уведомление у недоверенном сертификате шифрования. Это не является какой-либо ошибкой или проблемой безопасности. Причину этого сообщения мы описали выше. Просто нажмите «ОК» и вы увидите рабочий стол вашего сервера, при условии, разумеется, что все данные для подключения ранее были введены корректно.


Подключение серверу по RDP из Mac OS

Для подключения к удалённому рабочему столу для Mac OS компания Microsoft разработала и поддерживает официальный RDP-клиент. Он стабильно работает с любыми версиями ОС Windows.
Для загрузки его перейдите на сайт iTunes: https://itunes.apple.com/gb/app/id715768417

Программа обладает интуитивно понятным интерфейсом и позволяет создавать список серверов для дальнейшего моментального подключения к ним.
Для добавления нового сервера в список нажмите «New», как показано на скриншоте:

В открывшемся окне укажите авторизационные данные, как указано

в вашем личном кабинете

(IP-адрес сервера, логин Administrator и его пароль), и укажите произвольное название для нового подключения (Connection Name).

По завершению ввода нажмите на кнопку закрытия окна – все данных сохранятся и появится строчка с вашим сервером в списке подключений:

Кликните на эту строчку дважды мышкой, и вы подключитесь к серверу.

При попытке подключения к вашему VPS серверу если он работает на Windows Server 2008 или более новой версии, программа покажет уведомление о том, что не удалось проверить сертификат шифрования. Это не является проблемой безопасности, а всего лишь говорит о том, что сертификат выдан не сертифицированным центром, а сгенерирован самим же сервером.

Для того, чтобы это сообщение в будущем не возникало для этого сервера, нажмите «Показать сертификат».

Отметьте галочкой «Всегда доверять…» и нажмите «Continue».

Если в настройках подключения все параметры были введены без ошибок (IP-адрес, логин и пароль), то вы сразу же увидите рабочий стол вашего Windows Server:


Подключение к VDS серверу со смартфона или планшета на iOS (с iPhone или iPad)

Для iOS копания Microsoft выпускает полноценный официальный RDP-клиент комфортного и стабильного подключения к удалённому рабочему столу. Приложение называется Microsoft Remote Desktop или Удаленный рабочий стол: https://itunes.apple.com/ru/app/id714464092

Microsoft Remote Desktop позволяет заранее настроить целый список используемых вами для частого подключения серверов.

Специфика его работы заключается в том, что информация об учётных записях создаётся и хранится отдельно от самого списка серверов. Соответственно, для начала нам требуется добавить учётную запись пользователя Administrator. Для этого нажмите на кнопку настроек (иконка шестерёнок в верхнем левом углу) и выберите «Учётные записи»:

В открывшемся окне нажмите на «Добавление учётной записи пользователя» и введите логин Administrator и его пароль, как отображается

в вашем личном кабинете

:

По завершению вы увидите, что учётная запись Administrator добавлена в список, далее нажмите кнопку «Готово» и вы вернетесь на стартовый экран.

Следующим шагом добавляется непосредственно информация о самом сервере. Нажмите кнопку «+» в правом верхнем углу приложения и в открывшемся меню выберите «Рабочий стол»:

В окне добавления нового подключения укажите IP-адрес вашего сервера и выдерите учётную запись Administrator, добавленную на прошлом шаге:

В момент первого подключения вы увидите уведомление вы увидите уведомление о недоверенном сертификате безопасности. Причину этого

мы описали выше

. Выдерите «Больше не спрашивать для этого ПК» и нажмите «Принять».

В случае если IP-адрес и авторотационные данные указаны без ошибки, вы успешно подключитесь к вашему виртуальному серверу:


Как подключиться к VPS серверу со смартфона или планшета на Android

Для устройств под управлением Android компания Microsoft выпускает полноценное приложение для работы с удалённым рабочим столом – Microsoft Remote Desktop. Скачайте его как любое другое приложение в

Google Play

.

В отличие от всех описанных выше приложений для подключений с ПК, мобильное приложение Microsoft Remote Desktop разделяет учётные записи и сам список подключений. Поэтому сначала нужно добавить в список учётную запись пользователя Administrator с его паролем, который показан

в вашем личном кабинете

:

После добавления учётной записи возвращайтесь на главный экран приложения для добавления самого подключения (адреса вашего VDS сервера):

В открывшемся окне укажите IP-адрес вашего сервера (указан в

личном кабинете

), выберите добавленную ранее учётную запись Administrator и нажмите «Сохранить» («Save»):

На главном экране в списке подключений появится ваш сервер, просто нажмите на него, и программа начтёт подключение. Если вы подключаетесь с этого приложения к серверу впервые, то увидите информационное сообщение о том, что приложению не удалось проверить сертификат шифрования. Почему так происходит

описано в начале статьи

.

Достаточно отметить галочкой «Never ask again for connections to this PC» и данное уведомление больше появляться не будет. Далее нажмите «Connect» и если все авторотационные данные и IP-адрес сервера указан без ошибок, вы успешно к нему подключитесь:


P.S.: У клиентов нашего VPS-хостинга часто возникает вопрос, как подключиться к серверу с того или иного устройства. В поисковиках можно найти все эти инструкции в том числе и с картинками, и с видео. Надеюсь, данная статья, будет полезной и здесь, как содержащая в одном месте инструкции по подключению со всех самых популярных устройств и операционных систем.

One useful feature of Windows is that you can connect to your desktop from another location to remotely manage your computer. Fortunately, major Linux distributions also offer this feature and Ubuntu is one of them. If you want to connect to your Windows computers from Ubuntu remotely, you can use the default RDP client found in it, called Remmina. Here is how to create, configure and establish a remote desktop connection from Ubuntu to Windows:

NOTE: This tutorial was created on Ubuntu 18.04 LTS (Bionic Beaver). However, it works in other versions of Linux too.

Step 1: Enable Remote Desktop Connections on your Windows PC

If you want to allow other computers to connect remotely to your Windows PC, you must first configure it to accept remote desktop connections. To learn how to do it, read this tutorial: How to enable Remote Desktop Connections in all versions of Windows.

Step 2: Launch the Remmina Remote Desktop Client

By default, Ubuntu comes with a remote desktop client app that supports the Remote Desktop Protocol (RDP) used by Windows operating systems for remote connections. You can find it in Ubuntu’s Apps list.

Remmina Remote Desktop Client in Ubuntu

Remmina Remote Desktop Client in Ubuntu

If you prefer to search, you can find the default Ubuntu RDP client by using the RDP search term.

Searching for the default Ubuntu RDP client

Searching for the default Ubuntu RDP client

Step 3: Configure and establish the Ubuntu remote desktop session to Windows

Once you open the Remmina Remote Desktop Client, you should see something like this:

The Remmina Remote Desktop Client

The Remmina Remote Desktop Client

Click the «Create a new connection profile» button.

Its icon is a green plus sign which is easy to spot in the top-left corner of the window.

Create a new connection in Remmina Remote Desktop Client

Create a new connection in Remmina Remote Desktop Client

The previous action opens a window called Remote Desktop Preference. Here you can configure the remote desktop Ubuntu to Windows connection that you are going to establish.

The Remote Desktop Preference window

The Remote Desktop Preference window

In the Profile section, type the Name that you want to use for the connection. It can be anything you wish. Leave the other settings from the Profile section set to their defaults.

Choosing a name for the remote desktop profile

Choosing a name for the remote desktop profile

In the Server field from the Basic tab, type the IP address of the Windows PC to which you will connect. Enter the User name and User password for the user account that you want to use on the remote Windows PC. That user account needs to exist on the Windows PC.

If you are using a Microsoft account on your Windows PC, it is OK to fill in your email address and password. If your Windows PC is part of a domain, enter it in the Domain field, otherwise, leave this field empty.

Entering the IP address and the username and password

Entering the IP address and the username and password

Next, you can set the Resolution and the Color depth that you want to use for your remote desktop connection. By default, the remote desktop profile is set to use the «Use client resolution» which means that the connection uses the same resolution as the Windows computer to which you connect. The Color depth is also set at the highest quality possible. However, selecting a smaller desktop resolution and color depth can improve the performance of your Linux to Windows remote desktop session. If you experience lag when connected to the remote Windows desktop, try reducing the color depth or resolution.

Configuring the resolution and color depth used by the remote desktop profile

Configuring the resolution and color depth used by the remote desktop profile

If you want to share a folder from your Ubuntu computer with the Windows PC, check the Share folder box and select it.

Also, for more advanced settings, go to the Advanced tab. There you can turn the sound on or off, share printers, disable clipboard synchronization, and so on.

Configuring the advanced settings for the remote desktop connection

Configuring the advanced settings for the remote desktop connection

Once you finish configuring all the details, click Save and Connect. This saves your connection profile and then initiates an RDP connection to the Windows PC.

Saving the RDP profile and connecting to the Windows PC

Saving the RDP profile and connecting to the Windows PC

In a matter of seconds, you should have a running remote desktop connection established to your Windows PC.

A remote desktop connection established from Ubuntu to Windows

A remote desktop connection established from Ubuntu to Windows

You could also Connect to the remote Windows PC, without all the personalization steps shared earlier. However, that means that you have to reconfigure the remote desktop connection profile the next time you want to remote control your Windows PC.

Do you use Ubuntu to remote control Windows PCs?

As you can see, it is easy to establish a remote desktop connection from Linux to Windows. The Remmina Remote Desktop Client is available by default in Ubuntu, and it supports the RDP protocol, so connecting remotely to a Windows desktop is almost a trivial task. Did you use it? How did it work for you? Also, if you have any questions or if you need help, feel free to leave a comment below.

Introduction

The Remote Desktop Protocol (RDP) allows users to connect to another computer across a network and assume remote control over the host machine. The remote desktop connection can be established between different platforms, e.g., Linux users can RDP into a Windows system and vice versa.

System administrators working in Linux often use RDP to configure, manage, and troubleshoot Windows workstations and servers.

Learn how to RDP to a Windows PC from your Ubuntu system in minutes.

how to connect to a windows pc from ubuntu using rdp

Prerequisites

  • Ubuntu 22.04 or Ubuntu 20.04 installed.
  • Sudo or root privileges.
  • A remote Windows machine with network connectivity.
  • Windows firewall set to allow incoming RDP connections.
  • The user account intended for the RDP session must have RDP permissions on the Windows system.

How to Connect to a Windows PC From Ubuntu

The Ubuntu (client) and Windows (host) systems need to be configured before establishing an RDP connection.

Enable Remote Desktop Connection on the Windows Computer

Incoming RDP connections must be enabled on the Windows system. There are two ways to enable RDP in Windows.

Option 1: Enable RDP in Settings

1. Open the Windows Start menu and select Settings.

Access Settings App in Windows.

Note: Alternatively, press Winkey+I to access the Settings app.

2. Select System.

The System option in the Windows Settings App.

3. Choose Remote Desktop in the menu on the left side of the screen.

The Remote Desktop option in Windows Settings.

4. Toggle the Enable Remote Desktop switch On.

5. Click Confirm.

Enable RDP on Windows.

6. Close the Settings menu.

Note: When enabling RDP, ensure the user account initiating the connection has RDP permissions and the firewall allows RDP connections.

The Windows PC can now accept RDP connections.

Option 2: Enable RDP from Windows CMD

Activating RDP via the Windows CMD (Command Prompt) is useful when automating RDP setups across multiple Windows machines or creating scripts to streamline the configuration process.

1. Type cmd in the Windows search box.

2. Select Run as administrator to open the Command Prompt with administrative privileges.

Run Windows CMD as administrator.

3. The reg command is used to modify the Windows Registry. Enter the following command to enable RDP:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
Reg command to enable RDP in Windows CMD.

Warning: Exercise caution when making changes to the Windows Registry. Incorrect modifications can harm your system.

4. (Optional) If the Windows Firewall is activated, use the following command to enable RDP connections:

netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Note: The user account used to establish the connection must have RDP permissions on the Windows machine, and the Windows firewall must allow RDP connections.

The Windows system is ready to accept RDP connections.

Install Desktop/GUI Environment on Ubuntu (Optional)

Users running Ubuntu Server or a minimal installation of Ubuntu without a graphical user interface (GUI) can use command-line-based RDP clients, such as FreeRDP. However, some RDP clients like Remmina do not work without a GUI.

Installing a GUI on Ubuntu, such as Ubuntu GNOME, KDE Plasma, LXDE, or XFCE, can provide a more intuitive and user-friendly environment for establishing RDP connections.

To install the GNOME desktop environment:

1. Update the Ubuntu packages list:

sudo apt update

2. Enter the following command to install GNOME:

sudo apt install ubuntu-desktop -y

3. Reboot the system:

sudo reboot

You are presented with a desktop environment once you log in to the Ubuntu system.

Ubuntu 22.04 GNOME desktop.

Next, install and launch your preferred RDP client to connect to the Windows system.

Install Remote Desktop Client Software on Ubuntu

Linux users utilize RDP clients such as Remmina, FreeRDP, or rdesktop to facilitate an RDP connection.

Option 1: Install Remmina client on Ubuntu

Remmina is the default RDP client on Ubuntu 20.04  and 22.04. To check if the Remmina client is installed, access the command line and enter the following command:

dpkg -l | grep remmina

The system displays a list of installed Remmina packages and plugins.

Installed Remmina packages in Ubuntu 22.04.

1. If the Remmina client is not installed, update the Ubuntu packages list:

sudo apt update

2. Install Remmina and the necessary plugins:

sudo apt install remmina remmina-plugin-rdp -y

3. Launch the RDP client by entering the following command:

sudo remmina

4. Click the top left + icon to add a new connection profile.

Add new RDP connection profile in Remmina.

5. Enter a connection profile Name.

6. Select RDP – Remote Desktop Protocol from the Protocol dropdown menu.

Enter connection profile name in Remmina.

7. Enter the IP address or hostname of the Windows machine in the Server field.

8. Define the username and password for the user account you plan to use to log into the Windows machine.

Note: This user should be granted RDP permissions on the Windows host.

Enter RDP credentials in Remmina.

9. Select Use client resolution or define a custom resolution in the Resolution field.

10. Colour depth is set to Automatic by default. This preference allows the server to choose the best format based on network speed.

These are the mandatory options for initiating a standard RDP session. The Remmina client has numerous advanced settings to customize how the RDP connection is established.

11. Click Save and Connect to save the profile and connect to the Windows machine using the profile details.

Connect to Windows machine from Ubuntu via Remmina RDP.

Note: If you receive a certificate warning, opt to trust the (legitimate) certificate to continue with the connection.

The remote Windows desktop is available in the Remmina dashboard.

Access to a Windows machine from Ubuntu via RDP.

The next time you want to RDP into the Windows system, launch Remmina and double-click on the saved profile.

Option 2:  Install FreeRDP client on Ubuntu

To install the FreeRDP client on Ubuntu:

1. Update the Ubuntu packages list:

sudo apt update

2. Install the FreeRDP client using the following command:

sudo apt install freerdp2-x11 -y

3. Establish the RDP connection using the following syntax:

sudo xfreerdp /v:windows_machine_ip /u:username

Replace windows_machine_ip and username with valid connection details.

If the password /p: option is not included in the command, xfreerdp will prompt for the RDP user password. This practice is more secure than entering the password within the command.

The xfreerdp command-line tool is part of the FreeRDP project and offers multiple options for connecting to RDP servers:

OPTION DESCRIPTION
/p:[password] Enter the user password.
/domain:[yourdomain] Specify the domain to authenticate against.
/f Enable fullscreen mode.
/size:[1366×768] Specify a custom screen resolution.
/port:[4309] Specify a port number other than the default 3389 value.

Once connected via FreeRDP, the user gains access to the remote Windows system in a graphical interface, including the Start menu, taskbar, desktop icons, and any running applications or windows.

Ubuntu RDP to Windows: Extra Tips + Best Practices

The sections below offer advice on how to achieve optimal results when connecting to Windows using RDP on Ubuntu.

Minimum vs. Optimal Hardware Requirements

The RDP experience depends on bandwidth, network latency, and the capabilities of the Windows host machine. The table below outlines the minimal and optimal requirements for the Ubuntu and Windows systems:

Ubuntu Client
Minimal / Optimal
Windows Host
Minimal / Optimal
CPU Single-core processor / Multi-core processor 1.4 GHz+ / 2.4 GHz+
RAM 1GB / 2GB+ 4 GB for 64-bit / 8 GB+ for 64-bit
Graphics Integrated graphics or basic GPU / GPU DirectX 9 or later / Dedicated GPU for graphics-intensive tasks.
DirectX 12 or later
Network 2 Mbps / 10 Mbps+ 2 Mbps+ / 10 Mbps+
Disk Sufficient memory for RDP client software / SSD N/A

Use the information in the table as a broad guideline. Actual requirements depend on the specific tasks performed during the RDP session.

Implement Security Measures

To enhance the security of an RDP session from Linux to Windows, you can implement security measures on the Windows side, Linux side, and on the network. The lists below offer useful tips for each security segment.

Secure Windows

  • Limit the number of user accounts that can establish an RDP connection.
  • Create dedicated accounts for RDP to restrict access to critical systems or data.
  • Enforce strong password policies for RDP user accounts.
  • Implement two-factor authentication for RDP sessions.
  • Activate Network Level Authentication (NLA) to require authentication before establishing a session.
  • Temporarily lockout user accounts after multiple unsuccessful login attempts.

Secure the network

  • Use a firewall to restrict RDP access to specific IP addresses.
  • Change the default RDP port (3389) to a non-standard port number to mitigate brute-force attacks.
  • Use a VPN to encrypt the data transfer between client and host machines.
  • Alternatively, use SSH port forwarding to create an encrypted tunnel for the RDP session if a VPN is not an option.

Secure Linux

  • Regularly update the RDP Client to the latest version to benefit from security patches and improvements.
  • Disconnect from an RDP session when it is not being used and set timeouts for idle sessions.
  • Limit the number of simultaneous active sessions.

Ideal Internet Speed for RDP Connections

RDP can be efficient even over slower connections. However, specific tasks require a minimal level of visual quality and responsiveness. The table offers an overview of minimal and recommended bandwidth for general RDP tasks:

Task Minimum Bandwidth Recommended Bandwidth
Text-based tasks 512 Kbps – 1 Mbps 1 – 2 Mbps
MS Office and Web browsing 2 – 4 Mbps 5 – 10 Mbps
Design, images, and video 5 – 10 Mbps 10 – 25 Mbps+
Concurrent RDP Sessions Allocate bandwidth for each concurrent session. Allocate bandwidth for each concurrent session.

Keep in mind that apart from bandwidth, server loads, network latency, and stability affect RDP performance.

Test the RDP performance under typical work conditions and adjust RDP and network settings to balance responsiveness and quality.

Reduce Resolution & Color Depth for Performance Boost

Controlling the amount of detail that a RDP client transfers over the network can produce significant performance gains. Read the sections below to learn how to adjust resolution and color depth in your RDP session.

Resolution

Lowering the screen resolution or window size in RDP sessions means fewer pixels are transferred over the network. This strategy can improve responsiveness and speed when bandwidth is limited.

RDP clients enable users to set the screen resolution when initiating an RDP session. For instance, with FreeRDP, you can use the following command to set a 1280×720 resolution:

sudo xfreerdp /v:windows_machine_ip /u:username /size:1280x720

Reducing the resolution can enhance speed but may also compromise visual quality, making items appear pixelated.

Color Depth

Color depth defines how sharply a system can represent or distinguish unique colors.

Lowering the color depth reduces the amount of data transmitted for each pixel. The session will be more responsive, but colors may seem off, and gradients might lose their smoothness.

In the Remmina client, the Color depth option lets users define the color depth for the RDP session.

Setting Color depth in Remmina.

A low depth may work for simple tasks like text editing, but the True color setting, with 32 bits per pixel, provides the high-quality visuals required for video playback or graphic design.

Conclusion

You have successfully used an RDP client to connect to a remote Windows PC from your Ubuntu system. Use this connection to administer remote Windows systems, provide technical support to Windows users, and operate Windows-specific tools and applications.


Estimated reading: 5 minutes


748 views

The Remote Desktop Protocol (RDP) allows users to connect to another computer across a network and assume remote control over the host machine. The remote desktop connection can be established between different platforms, e.g., Linux users can RDP into a Windows system and vice versa.

System administrators working in Linux often use RDP to configure, manage, and troubleshoot Windows workstations and servers.

In this article, we will show you how to RDP to a Windows PC from your Ubuntu system.

Prerequisites

  • Server Ubuntu 22.04
  • A remote Windows machine with network connectivity.
  • Windows firewall set to allow incoming RDP connections.

Enable Remote Desktop Connection on the Windows Computer

Incoming RDP connections must be enabled on the Windows system. There are two ways to enable RDP in Windows.

Option 1: Enable RDP in Settings

1. Press Winkey+I to access the Settings.

2. Select System.

3. Choose Remote Desktop in the menu on the left side of the screen.

4. Toggle the Enable Remote Desktop switch On and click Confirm

Option 2: Enable RDP from Windows CMD

1. Type cmd in the Windows search box.

2. Select Run as administrator to open the Command Prompt with administrative privileges

3. The reg command is used to modify the Windows Registry. Enter the following command to enable RDP:

reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

4. (Optional) If the Windows Firewall is activated, use the following command to enable RDP connections:

netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Install Desktop/GUI Environment on Ubuntu (Optional)

1. Update the Ubuntu packages list:

apt update

2. Enter the following command to install GNOME:

apt install ubuntu-desktop -y

3. Reboot the system:

reboot

Then open VNC in the Client area or SolusVM VPS control panel. You will see the interface and start setup

You can customize the setup as you like

After completing the setup, this is the Ubuntu desktop environment interface

Install Remote Desktop Client Software on Ubuntu

Linux users utilize RDP clients such as Remmina, FreeRDP, or rdesktop to facilitate an RDP connection.

Option 1: Install Remmina client on Ubuntu

Remmina is the default RDP client on Ubuntu 22.04. To check if the Remmina client is installed, access the command line and enter the following command:

dpkg -l | grep remmina

1. If the Remmina client is not installed, update the Ubuntu packages list:

apt update

2. Install Remmina and the necessary plugins:

apt install remmina remmina-plugin-rdp -y

3. Launch the RDP client by entering the following command:

remmina

4. Click the top left + icon to add a new connection profile.

5. Enter a connection profile Name.

6. Select RDP – Remote Desktop Protocol from the Protocol dropdown menu.

7. Enter the IP address or hostname of the Windows machine in the Server field.

8. Define the username and password for the user account you plan to use to log into the Windows machine.

9. Select Use client resolution or define a custom resolution in the Resolution field.

10. Colour depth is set to Automatic by default. This preference allows the server to choose the best format based on network speed.

These are the mandatory options for initiating a standard RDP session. The Remmina client has numerous advanced settings to customize how the RDP connection is established.

11. Click Save and Connect to save the profile and connect to the Windows machine using the profile details.

The remote Windows desktop is available in the Remmina dashboard.

Option 2: Install FreeRDP client on Ubuntu

To install the FreeRDP client on Ubuntu:

1. Update the Ubuntu packages list:

apt update

2. Install the FreeRDP client using the following command:

apt install freerdp2-x11 -y

3. Establish the RDP connection using the following syntax:

xfreerdp /v:windows_machine_ip /u:username

Replace windows_machine_ip and username with valid connection details.

If the password /p: option is not included in the command, xfreerdp will prompt for the RDP user password. This practice is more secure than entering the password within the command.

Once connected via FreeRDP, the user gains access to the remote Windows system in a graphical interface, including the Start menu, taskbar, desktop icons, and any running applications or windows.

How to Reduce Resolution & Color Depth for Performance Boost

Lowering the screen resolution or window size in RDP sessions means fewer pixels are transferred over the network. This strategy can improve responsiveness and speed when bandwidth is limited.

RDP clients enable users to set the screen resolution when initiating an RDP session. For instance, with FreeRDP, you can use the following command to set a 1280×720 resolution:

xfreerdp /v:windows_machine_ip /u:username /size:1280x720

Conclusion

You have successfully used an RDP client to connect to a remote Windows PC from your Ubuntu system. Use this connection to administer remote Windows systems, provide technical support to Windows users, and operate Windows-specific tools and applications.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows 10 программы по умолчанию для всех пользователей
  • Обновление функций до windows 10 версия 22h2 не скачивается
  • Lenovo thinkpad t520 windows 10
  • Как выполнить сброс windows 10 к заводским настройкам
  • Программирование на языке c в среде visual studio clr windows forms