Software & AppsOperating SystemLinux

How To Access Ubuntu from Windows Remotely

Ubuntu 16

In the world of system administration and software development, there are often times when you need to access a Linux-based system, like Ubuntu, from a Windows machine. This article will guide you through several methods to achieve this, including using xRDP, MobaXterm, PuTTY, and x2go.

Quick Answer

To access Ubuntu from Windows remotely, you can use various methods such as xRDP, MobaXterm, PuTTY, and x2go. These tools allow you to establish a remote connection to your Ubuntu machine and control it from your Windows computer.

Using xRDP

xRDP is an open-source version of Microsoft’s Remote Desktop Protocol (RDP). It allows you to graphically control a remote machine.

Installing xRDP on Ubuntu

To install xRDP on Ubuntu, open the Terminal and run the following commands:

sudo apt-get update
sudo apt-get install xrdp

The sudo apt-get update command updates the package list on your Ubuntu system. The sudo apt-get install xrdp command installs the xRDP software.

Installing XFCE4 Desktop Environment

xRDP works best with the XFCE4 desktop environment. Install it by running:

sudo apt-get install xfce4

Configuring xRDP

To configure xRDP, create or edit the .xsession file in your home directory with the command:

echo xfce4-session > ~/.xsession

This command writes xfce4-session into the .xsession file, which xRDP reads when it starts up.

Next, edit the xRDP startup file by running:

sudo nano /etc/xrdp/startwm.sh

In the file, replace the last line with startxfce4.

Finally, restart xRDP with the command:

sudo service xrdp restart

Connecting from Windows

On your Windows machine, open the Remote Desktop Connection client, enter the IP address of your Ubuntu machine, and click Connect.

Using MobaXterm

MobaXterm is a software that provides remote terminal services to Windows, including SSH, telnet, and X11 forwarding.

Installing MobaXterm on Windows

Download and install MobaXterm from their website.

Installing SSH Server on Ubuntu

To allow MobaXterm to connect to your Ubuntu machine, install the SSH server by running:

sudo apt install openssh-server

Connecting from Windows

Open MobaXterm, go to Sessions > New session > SSH. Enter the IP address of your Ubuntu machine to establish an SSH connection. You can then run Ubuntu applications, and they will open as separate native Windows windows.

Using PuTTY

PuTTY is a free and open-source terminal emulator that supports several network protocols, including SSH.

Installing PuTTY on Windows

Download and install PuTTY from their website.

Installing SSH Server on Ubuntu

Install the SSH server on Ubuntu by running:

sudo apt install openssh-server

Connecting from Windows

Open PuTTY, enter the IP address of your Ubuntu machine, and click Open to establish an SSH connection. You can use PuTTY as a text terminal to access your Ubuntu machine.

Using x2go

x2go is an open-source remote desktop software for Linux that uses the NX technology protocol.

Installing x2go Server on Ubuntu

Follow the installation instructions on the x2go website to install the x2go server on your Ubuntu machine.

Installing x2go Client on Windows

Download and install the x2go client from the x2go website on your Windows machine.

Connecting from Windows

Open the x2go client, configure the session (host, login, session type), and click OK. You can then connect to your Ubuntu machine remotely.

Remember, for some of these methods, you may need to ensure that your work computer allows remote connections and that any necessary firewall settings are configured properly.

By following these steps, you should be able to successfully access Ubuntu from Windows remotely. Happy remote computing!

Can I access Ubuntu from Windows remotely?

Yes, you can access Ubuntu from Windows remotely using various methods like xRDP, MobaXterm, PuTTY, and x2go.

What is xRDP?

xRDP is an open-source version of Microsoft’s Remote Desktop Protocol (RDP) that allows you to graphically control a remote Linux-based system from a Windows machine.

How do I install xRDP on Ubuntu?

To install xRDP on Ubuntu, open the Terminal and run the commands sudo apt-get update followed by sudo apt-get install xrdp.

Which desktop environment works best with xRDP?

xRDP works best with the XFCE4 desktop environment. You can install it on Ubuntu by running sudo apt-get install xfce4.

How do I configure xRDP?

To configure xRDP, create or edit the .xsession file in your home directory with the command echo xfce4-session > ~/.xsession. Then, edit the xRDP startup file by running sudo nano /etc/xrdp/startwm.sh and replace the last line with startxfce4. Finally, restart xRDP with sudo service xrdp restart.

Can I use MobaXterm to access Ubuntu from Windows?

Yes, MobaXterm is a software that provides remote terminal services to Windows, including SSH, telnet, and X11 forwarding. You can use it to establish an SSH connection to your Ubuntu machine.

How do I install MobaXterm on Windows?

You can download and install MobaXterm from their website here.

How do I install SSH Server on Ubuntu for MobaXterm?

To allow MobaXterm to connect to your Ubuntu machine, install the SSH server by running sudo apt install openssh-server on Ubuntu.

Can I use PuTTY to access Ubuntu from Windows?

Yes, PuTTY is a free and open-source terminal emulator that supports several network protocols, including SSH. You can use it to establish an SSH connection to your Ubuntu machine.

How do I install PuTTY on Windows?

You can download and install PuTTY from their website here.

Leave a Comment

Your email address will not be published. Required fields are marked *