1

I need a GUI access to my remote Linux machine, from a windows laptop. To this end, I tried 2 methods as of yet:

a) installed xrdp and tigervnc. It works but it's damn slow, plus I'm worried by the security issues (see below).

b) ssh -X. This allows to have single X11 applications on my laptop, which would suffice, but strangely enough, it is even more slow than the full desktop with xrdp.

So, I have a couple of questions:

  1. May you suggest alternative, quicker methods?
  2. What about security with xrdp/vnc? Can it be tunneled with ssh without further speed sacrifices? If yes, how to do it? If not, can I authenticate passwordless, with some ssh-like encrypted keys?

Thanks a lot.

MadHatter
  • 501

4 Answers4

5

Command line is sufficient

I understand the idea of a command line interface may be a bit uncomfortable at first, but really it is a reasonable choice. You use the command line interface as on a Desktop so you should already be a little familiar with bash / zsh / shell of choice.

Advantage - fast and secure (via ssh).

IMO desktop environments do not really help on servers as everything server side is command line.

Start/stop services, edit config files, install/update packages, moving data files, firewall and network tools, and user management such tasks are not enhanced by running a graphical terminal.

Installing a desktop environment adds hundreds of packages the vast majority are unused and thus takes up disk space, complicated upgrades, and adds potential security holes (more applications == more potential security holes).

To manage servers use ssh + screen or an alternate to screen - Is there any user friendly alternative to screen?

This allows you to attach and reattach to your server.

Be sure to secure ssh with a least keys http://bodhizazen.com/Tutorials/SSH_security

nano / vim / emacs are all great tools for editing. You can use vim + ssh edit files remotely https://unix.stackexchange.com/questions/202918/how-do-i-remotely-edit-files-via-ssh

Or you can mount your file system over sshfs https://help.ubuntu.com/community/SSHFS


Graphical tools - WEB solutions are better than a desktop

If you feel you NEED a graphical interface use one of the many web based interfaces. These tools are faster than VNC, more secure than VNC, graphical interfaces, and server task specific.

You can secure them via https or ssh (depending on tool).

You can connect to them from any OS via a browser.

  1. Webmin http://www.webmin.com/

Webmin picture

  1. Cockpit http://cockpit-project.org/

enter image description here

And if needed there are several specialized web interfaces such as

  1. phpmyadmin - manages databases https://www.phpmyadmin.net/

phpmyadmin

  1. Vitrualization also has several options.

Virt manager

oVirt

  1. There a wide range of alternate tools you can find many web interfaces if you google search. https://www.tecmint.com/web-control-panels-to-manage-linux-servers/

cPanel

Panther
  • 104,528
1

You can use Chrome Remote Desktop. You have to install Google Chrome on your Linux machine, and add an extension to Google Chrome and login with your Google account to be able to use it.

Since I have used Chrome Remote Desktop, I don't need any other paid programs. You can even access your machines from your mobile device - it has Android and iOS devices (for iPhone and iPad).

This page has more information about installing it. Access another computer with Chrome Remote Desktop

Tim
  • 33,500
Peshmerge
  • 698
1

I use two different options:

  1. Teamviewer. Free for non commercial use, cross platform including Windows, macOS, Linux and Raspberry Pi. One program to install for both remote control of other devices and remote access from other devices.

    Also has an iOS and Android app, for remote control on the go.

  2. RealVNC. Free for non commercial use up to 5 devices. Also cross platform including Windows, macOS, Linux and Raspberry Pi. You have to install one program for remote control (which doubles as a VNC viewer). The server is a separate program.

    Also has an iOS and Android app.

Tim
  • 33,500
0

Assuming your performance issues are bandwidth related rather than machine resource limitations, try X2Go https://wiki.x2go.org - this is built on the original NX libraries, which are both secure and low bandwidth optimised.