Tuesday, February 3, 2026

Connect to Kubuntu from Android via Termux

1. Preparations on your Kubuntu 24.04 PC

    Enable Remote Desktop: Go to System Settings > System > Remote Desktop. Enable "Desktop Sharing" (VNC) or "Remote Login" (RDP).

    sudo apt update && sudo apt install openssh-server.

    To find your PC's local IP address (e.g., 192.168.1.10):

    ip addr  OR ip addr  | grep inet    

2. Installation on Termux (Android)

Install OpenSSH client to create the secure bridge:

    pkg update && pkg upgrade

    pkg install openssh

    Create the Tunnel: Use this command to forward your PC's remote desktop port to your phone.

        For RDP (Recommended): ssh -L 3389:localhost:3389 user@your_pc_ip

        For VNC: ssh -L 5901:localhost:5901 user@your_pc_ip

        (Keep this Termux session running in the background).

3. Connecting to the Desktop

Once the tunnel is active, you do not use Termux to view the screen; you use a dedicated app to connect to the "tunnel" Termux created.

    Download a Client: Install aRDP from Play Store or F-Droid.

    Configure the Connection:

        PC Name / Host: 127.0.0.1 (or localhost).

        Port: If the app asks, use 3389 (RDP) or 5901 (VNC).

    Login: Use your standard Kubuntu username and password.

If you get a black screen when connecting via RDP, ensure you are logged out of the physical PC first. Kubuntu's current RDP implementation often prevents simultaneous local and remote sessions for the same user.

No comments:

Post a Comment