How To Remote Control Linux From Windows

Ads by Google

<firstimage=”http://www.makeuseof.com/wp-content/uploads/2011/01/remote-tiny.png” />how to remote control linux from windowsWe’ve covered how to set up a Linux server for various tasks in previous articles. But once it is set up, what is the easiest way to administer that server? Oftentimes it can be tucked away inside a basement or attic, it doesn’t matter where — as long as it has power and network (and is properly cooled). You don’t need a keyboard, monitor mouse or other peripherals; just a power and network cable.

So once you’ve got the server set up (and of course you’ve tested it to make sure it can boot back up from a reboot or power failure), how do you remotely connect to it?


There are 2 main options: GUI (Graphical User Interface) or CLI (Command Line Interface). Also for the sake of this article, I will mention Ubuntu-only, but the same general ideas work on any Linux-based system.

Finding Your Linux System’s IP Address

For either method, you will need to find your computer’s local Internet Protocol (IP) address. If you have a sidebar, it may show up there, or you can open your network manager “Connection Information” and view it there. If you have not done so already, set up a static IP address so that this does not change when you reboot your Linux computer.

how to remote control linux from windows

In the example above, the static IP address is 10.0.2.15.

Ads by Google

Remote Control via GUI

Ubuntu and most Gnome-based Linux systems use VNC, or Virtual Network Computing protocol, for graphical remote control. To configure this service, which is disabled by default, go to System->Preferences->Remote Desktop. This will bring up the settings panel for Remote Desktop:

linux remote control desktop

I’ve configured the correct settings above for remote control on an unattended box. Another important aspect of this is to automatically log you in to the system on a reboot, otherwise the desktop session will not have started and you won’t be able to log in. You do this in System->Administration->Login Screen.

After enabling these two options, you are good to go. Install a VNC client on a Windows computer (I recommend UltraVNC (it is only necessary to install the client, not the server) for ease of use. Enter the Linux computer’s IP address and hit ‘Connect’ – it will then prompt you for the password. Once you are connected, it will pop up on your screen and you’ll see this message which is shown on the desktop of the remote computer.

linux remote control desktop

We’ve previously written about Remote Desktop on Ubuntu specifically how to establish simple remote access between Ubuntu and Windows and how to use the built-in Remote Desktop in Ubuntu, read on there for more detailed information.

Remote Control Via Command Line

The surest way to connect to a Linux box is to use SSH. All modern Linux systems include an SSH-client installed by default and most will also include the openssh server. Check to see you have it installed by issuing the command:

# sudo apt-get install openssh-server

It will either install the server if you don’t have it, or tell you it already is the latest version.

Once this is installed, all you need to do to connect to the computer is use any SSH client to connect to the IP address. A widely used and free one is called Putty. It works on multiple platforms and is free. Mac OS X users can also use the built-in xterm.

Execute Putty, put in your IP address and hit ‘connect’. You will then be prompted for the username and password on the system, enter it and you are in!

how to remote control linux from windows

Which Way Is Best?

This all depends on your end goal. I find the command line to be much more stable and reliable than VNC so I typically will do everything from there, but then again I am comfortable with and grew up with the Terminal. If you are unfamiliar with Terminal commands or are perhaps used to the ease of use of the graphical interface, then VNC still works very well. It gives you an instant look at the desktop just like the computer was sitting in front of you. Do whichever method works best for you, or experiment with both! Just don’t run any commands that interrupt its network connection or you’ll have to make a trip to install a keyboard and monitor – been there and done that!

Let us know how you make out and of course let us know if you have any other preferred method of connecting to Linux from Windows!

Image credit: Shutterstock

Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
Master the Linux Command Line
Master the Linux Command Line
38 Members
Best Linux Apps
Best Linux Apps
35 Members
Linux for New Switchers
Linux for New Switchers
34 Members
Linux Distros Talk
Linux Distros Talk
29 Members
Ads by Google
Comments (11)
Load 10 more
Affiliate Disclamer

This review may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
Affiliate Disclamer

This review may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.