DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
Blog

How to Set Up a Remote Desktop with X2Go on a Linux VPS

Install X2Go Server and a compatible desktop on your Linux VPS, then connect with X2Go Client over the VPS's existing SSH port. This guide covers Ubuntu and Debian commands, profile fields, firewall rules, security and troubleshooting.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To access a Linux VPS graphically with X2Go, install a compatible desktop environment and the X2Go server packages on the VPS, make sure ordinary SSH login works, then create an X2Go Client profile that points to the same host, user, port and authentication method. X2Go carries the session over SSH, normally TCP port 22, so a separate X2Go data port is not normally needed.

What X2Go does on a VPS

X2Go divides the remote-desktop job between two machines. X2Go Server runs on the Linux VPS and starts the applications and desktop session there. X2Go Client runs on your local Linux, Windows or macOS computer and displays that session. PyHoca-GUI and PyHoca-CLI are alternative clients for the same server architecture.

As an Amazon Associate I earn from qualifying purchases.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The connection is an SSH login rather than a separately exposed graphical protocol. The VPS’s SSH daemon handles transport and authentication. In practical terms, a user who is allowed to log in over command-line SSH is generally the user who can start an X2Go desktop session. You should therefore test SSH first and treat the X2Go profile as another way to use that account.

X2Go does not supply a desktop environment. The VPS must already have one installed, and the client must request the matching session. The project specifically warns that newer GNOME 3 and Unity versions can have compatibility problems, so a supported alternative such as MATE or KDE is often a safer choice for a first setup.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Requirements before you install anything

  • A reachable VPS: use its public IP address or a public hostname that resolves from the computer where the client will run.
  • An SSH-enabled system: the SSH server must be running, and the account you plan to use must be permitted to log in.
  • A desktop environment: install one that works with X2Go and know the session name or command that starts it.
  • A permitted SSH port: port 22 is the normal default. If you changed SSH to another port, use that same port in the client profile and in the VPS firewall or cloud security group.
  • A non-root account: use a normal user for the graphical session and sudo for administration. Avoid opening a graphical root session.
  • A local X2Go client: install the package for your local Linux, Windows or macOS computer from the X2Go project or your operating system’s package source.

The reviewed project documentation does not publish a universal minimum for VPS CPU, RAM, storage or bandwidth. Choose resources for the applications and number of simultaneous sessions you will run. A light single-user desktop and a browser-heavy development workload have very different requirements; do not treat any unverified VPS size as an official X2Go minimum.

Plan the SSH and firewall path

X2Go’s documented network path is the VPS SSH service. You normally need one inbound rule for the SSH port, not a second range of X2Go-specific ports.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Item What to configure Typical value
Transport SSH daemon on the VPS TCP
Port Port entered in the X2Go profile and allowed by firewalls 22
Authentication Password, private key or SSH agent accepted by the account Your existing SSH method
Source restriction VPS firewall and provider security group Your client network, where practical
Extra X2Go ports Not normally required for the documented setup None

Restrict the rule to trusted source addresses when your use case allows it. Keep the SSH daemon, operating system, desktop packages and X2Go packages updated through the distribution’s normal update process. If your provider has both a host firewall and a cloud security group, the connection must be allowed by both.

Install a compatible desktop environment

X2Go starts the desktop session you select in the client. Install that desktop before testing the graphical connection, using the package manager and instructions for your VPS distribution. The exact package name and command differ between distributions, so there is no single desktop-install command that is correct for every Linux VPS.

Choosing a session

MATE and KDE are examples of session types shown in the X2Go client documentation. Record the session label your distribution installs, because selecting a different label can cause an immediate disconnect even when the server packages are correct.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Newer GNOME 3 and Unity releases are called out by the X2Go server documentation as having compatibility issues. If one of those sessions fails, test a desktop environment with documented X2Go compatibility rather than repeatedly changing SSH settings. Install only the components you need; a smaller desktop generally means fewer packages and less background activity, but the appropriate choice depends on your applications.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start a clean session after installation

After installing the desktop, reboot if your distribution requires it, or start a new SSH session so newly installed services and environment settings are available. You can verify the account still works before involving X2Go:

ssh user@host -p PORT

Replace user, host and PORT with the actual account, address and SSH port. A successful command-line login proves reachability and credentials, but it does not by itself prove that the selected desktop session can start.

Install X2Go Server on Ubuntu

On Ubuntu, the official instructions add the X2Go stable repository, refresh package metadata and install the server packages. Run these commands from an SSH session using an account with sudo access:

sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession

The x2goserver package supplies the server-side core. x2goserver-xsession supplies the session integration required for the X2Go Client to start a remote desktop on Debian-family systems that have a desktop environment. Install both rather than assuming the core package alone is sufficient.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Allow the repository command to complete, check that package installation finishes without errors, and keep the package manager’s normal update process enabled. Do not expose a new inbound port just because X2Go was installed; the client will use the SSH port you already tested.

Install X2Go Server on Debian

For Debian, enable the X2Go Debian repository according to the project’s Debian instructions, refresh the package index, and install the same two packages:

sudo apt-get install x2goserver x2goserver-xsession

If your package manager reports that the packages cannot be found, the repository step has not been completed or its metadata is stale. Correct the repository configuration, run the distribution’s update command, and retry. On Debian, Raspbian and Ubuntu systems with a desktop environment, the project documentation specifically identifies x2goserver-xsession as necessary for a client to initiate a session.

Install the client and create a session profile

Install X2Go Client on the computer you will use to connect. Linux users can use a distribution package where available; Windows and macOS users should use the X2Go project’s client package. Then open X2Go Client and create a new session profile.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Name the session. Choose a label that identifies the VPS, such as its role or hostname.
  2. Enter the host. Use the VPS’s public IP address or a hostname that resolves from the local computer. If you use a name, verify DNS resolution before troubleshooting X2Go.
  3. Enter the SSH user. Use the non-root account that successfully logged in with the ssh command.
  4. Set the SSH port. Enter 22 unless the VPS uses another SSH port. The profile can use an alternative port, but it must match the daemon and firewall rules.
  5. Choose authentication. Select the password, private-key or SSH-agent method that works for the same account. If you use a key, select the correct private-key file and ensure its permissions and passphrase handling allow the local client to use it.
  6. Select the desktop session. Choose the installed session, such as MATE or KDE, or specify the custom desktop command required by your installation.
  7. Save and start the profile. On the first connection, verify the server host key when prompted, then authenticate.

The host, username and port in the profile should be identical to the values in your working SSH command. A mismatch in any one of them can look like an X2Go failure even though the server is operating normally.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

What should happen on the first connection

After host-key verification and authentication, X2Go should create or resume a desktop session on the VPS and display it in a local window. Applications run on the VPS; the local computer is displaying the remote session. Closing the client does not necessarily mean the remote applications have been cleanly closed, so use the desktop’s normal logout function when you are finished and reconnect to an existing session when the client offers that choice.

The exact controls for display size, local integration and session behavior vary by client version and operating system. Keep the initial test simple: use the default display settings, start one compatible desktop session and confirm that a basic application opens. Change performance or integration options only after the basic path works.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Security practices for an Internet-facing VPS

Use named, non-root accounts

Create a user for daily work, grant only the administrative privileges required through sudo, and select that user in X2Go. Reserve root for administration. This limits the impact of a compromised graphical session and makes account-level auditing possible.

Prefer keys and limit exposure

Where practical, use SSH keys or an SSH agent instead of a password and restrict SSH login to named users. Allow the selected SSH port only from trusted networks in the VPS firewall and provider security group when your work pattern permits it. A changing client address may require a broader rule, but it should be an intentional trade-off rather than an accidental open-to-the-world setting.

Patch every layer

Update the operating system, SSH daemon, desktop environment and X2Go packages through the normal repositories. Re-test command-line SSH after changes to the daemon or firewall, then reconnect with the saved X2Go profile. Do not install an additional listener for X2Go unless another component explicitly requires one; the documented design uses SSH as the transport.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Troubleshoot a failed connection

Work from the network outward. Changing desktop commands before proving SSH works makes diagnosis harder.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Symptom Likely cause Action
Connection times out Firewall, security group, wrong address or wrong port Test ssh user@host -p PORT from the same client; check both VPS and provider rules.
Authentication is rejected Wrong user, password, key or SSH-agent selection Make the command-line SSH login work with the same credentials, then copy those values into the profile.
SSH works but the desktop closes immediately Incorrect session selection, missing desktop package or missing X2Go session package Confirm the desktop is installed, select its exact session command, and verify both server packages.
Only GNOME 3 or Unity fails Compatibility issue with newer versions Switch to a desktop environment with documented X2Go compatibility and test again.
The host name fails but the IP works Name does not resolve from the local computer Use the working IP temporarily or correct DNS before retrying the profile.
Intermittent disconnect after a package change Updated SSH, desktop or X2Go component; stale session Start a fresh SSH session, retry a new X2Go session and inspect client and server logs.

Run the checks in order

  1. From the same local computer, run ssh user@host -p PORT. If it fails, fix DNS, routing, firewall or credentials first.
  2. Confirm that the VPS firewall and cloud security group allow the exact port used by SSH.
  3. Compare the X2Go profile’s host, username, port and authentication method with the working SSH command.
  4. Confirm that the selected desktop environment is installed and that its session command is correct.
  5. On Debian, Raspbian or Ubuntu, verify that both x2goserver and x2goserver-xsession are installed.
  6. If the selected session is newer GNOME 3 or Unity, test a compatible alternative.
  7. Reproduce the failure once more and review X2Go client and server logs. Package locations differ by distribution, so use your distribution’s package documentation to locate them.

A profile that authenticates successfully but disconnects during session startup is usually a desktop or session-package problem, not a missing inbound X2Go port. Keep that distinction in mind when reading logs.

Session and capacity decisions

X2Go can be useful when you want the applications and files to remain on a remote Linux machine while you work from another computer. The VPS does the application work, so CPU, memory, storage performance and network quality should be selected for the workload rather than for a generic X2Go specification. The available documentation establishes no universal hardware threshold or benchmark ranking.

  • For one light session, start with the smallest VPS that comfortably runs the chosen desktop and applications, then monitor resource use.
  • For browsers, IDEs, media tools or several simultaneous users, plan for higher memory and CPU demand and test the real workload.
  • For unstable networks, favor a setup that keeps long-running work on the VPS and reconnect to the existing session instead of restarting applications.
  • For multiple users, give each person a separate SSH account and session, and size the VPS for concurrent desktops rather than for one idle login.

These are operational planning principles, not published X2Go minimums. Measure the applications you actually intend to run before committing to a VPS size.

A repeatable setup checklist

  • VPS has a public IP or resolvable hostname.
  • SSH daemon is enabled and the chosen non-root user can log in.
  • The same SSH port is allowed by the VPS firewall and provider security group.
  • A desktop environment is installed and its X2Go-compatible session name is known.
  • Ubuntu has the X2Go stable repository enabled, or Debian has the X2Go Debian repository enabled.
  • x2goserver and x2goserver-xsession are installed.
  • Local X2Go Client is installed.
  • Profile contains the tested host, username, port and authentication method.
  • Profile selects the installed desktop session rather than an unsupported or misspelled command.
  • No unnecessary X2Go-specific inbound port has been opened.

Bottom line

An X2Go remote desktop on a Linux VPS is an SSH-based arrangement: install a compatible desktop, install both X2Go server packages, verify ordinary SSH access, and point the local client at the same account and port. Most failures are resolved by correcting one of those four layers—reachability, authentication, session selection or package installation—rather than by opening additional network ports.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.