- Ubuntu from Windows
Guide: Connect to Ubuntu from Windows
In some scenarios, you will have to connect to Ubuntu from Windows system.
There might be various reasons for you to connect both your systems. The following are two of those reasons:
- You might be at work and you need to access your Ubuntu computer at home.
- Your Windows system could be in one of the rooms and you have placed the Ubuntu computer in another. Sometimes, you will have to access or update the files on the Ubuntu computer.
Whatever the reason, there are ways of connecting both your computers. Let us now see how to remotely access your Ubuntu 20.04 from a Windows 10 system:
Software Requirements to perform the remote desktop access:
You will need the following software for connect to Ubuntu from Windows system:
- A system on which Ubuntu 20.04 has been installed or a computer with upgraded Ubuntu 20.04 Focal Fossa.
- Your Windows 10 system.
- You should have privileged access to your Linux system through the sudo command.
Executing the commands to access your Ubuntu from Windows:
- First, you have to install RDP (or Remote Desktop Protocol) server xrdp on your Ubuntu 20.04 desktop. To achieve this task, you need to open the Terminal on the Ubuntu desktop and enter the command given here:
sudo apt install xrdp
- Next, you have to start the system after reboot and then run the remote desktop sharing server xrdp. To do the same, type in the following command:
sudo systemctl enable –now xrdp
- Now, on the Ubuntu desktop, you need to open the firewall port 3389. So, please type in this command:
sudo ufw allow from any to any port 3389 proto tcp
- Now, please go to your Windows system and type in remote in the Search box. From the displayed options, select Remote Desktop Connection.
- When the Remote Desktop Connection client displays on your screen, click on the Open button.
- Now, you have to enter Ubuntu’s remote desktop share IP address. If required, you can select the checkbox next to the Allow me to save credentials option.
- When you are prompted by a message, just click on the Yes button. The message will usually be the following:
The identity of the remote computer cannot be verified.
- In the window that pops up next, please type the password for the remote Ubuntu user.
- After completing the above steps, you should get connected to your Ubuntu desktop remotely.
We have now discussed the procedure to connect to Ubuntu from Windows system.