rdesktop

Client RDP open-source pour se connecter aux Windows Terminal Services/Remote Desktop depuis Linux. Ancien mais toujours une alternative légère pratique à FreeRDP. Open-source RDP client for connecting to Windows Terminal Services/Remote Desktop from Linux. Legacy but still handy lightweight alternative to FreeRDP.

↗ https://github.com/rdesktop/rdesktop

Overview

rdesktop is a classic open-source implementation of the RDP (Remote Desktop Protocol) client, letting you connect to Windows hosts from Linux. It’s largely superseded by FreeRDP for modern NLA/CredSSP-heavy environments, but it’s still useful as a minimal, dependency-light client — handy on older engagements or when a pivot box only has rdesktop available in its package repo.

Common Usage

Basic connection with credentials

rdesktop -u administrator -p 'Password123!' -d CORP <target>

Connect with a password prompt instead of plaintext on the command line

rdesktop -u administrator -d CORP <target>

Full screen, higher color depth, and clipboard sharing

rdesktop -f -a 24 -r clipboard:PRIMARYCLIPBOARD <target>

Map a local drive into the session (useful for pulling/pushing files)

rdesktop -r disk:share=/tmp/share -u administrator -p 'Password123!' <target>

Connect to a non-default RDP port

rdesktop -u administrator -p 'Password123!' <target>:33389

Tips

  • rdesktop predates NLA in many builds and can fail against hosts enforcing CredSSP/NLA — try FreeRDP (xfreerdp) if the connection is rejected
  • -g WxH sets a specific window geometry instead of full screen, useful over slow links
  • Pass-the-hash isn’t supported natively here — use xfreerdp /pth:<hash> for that workflow instead
Help / Man page
Usage: rdesktop [options] server[:port]

   -u: user name
   -d: domain
   -p: password (- to prompt)
   -n: client hostname
   -k: keyboard layout on server
   -g: desktop geometry (WxH)
   -f: full-screen mode
   -b: force bitmap updates
   -a: connection colour depth (8, 15, 16, 24)
   -r: enable specified device redirection
       '-r disk:<share>=<path>' for disk redirection
       '-r clipboard:PRIMARYCLIPBOARD' for clipboard redirection
   -0: attach to console
   -z: enable rdp compression
   -x: RDP5 experience (m modem, b broadband, l lan)
   -T: window title

Vue d’ensemble

rdesktop est une implémentation open-source classique du client RDP (Remote Desktop Protocol), permettant de se connecter à des hôtes Windows depuis Linux. Il a largement été supplanté par FreeRDP pour les environnements modernes fortement basés sur NLA/CredSSP, mais reste utile comme client minimal et léger en dépendances : pratique sur des missions plus anciennes ou quand une machine de pivot ne dispose que de rdesktop dans son dépôt de paquets.

Utilisation courante

# Connexion basique avec identifiants
rdesktop -u administrator -p 'Password123!' -d CORP <target>

# Se connecter avec une invite de mot de passe plutôt qu'en clair sur la ligne de commande
rdesktop -u administrator -d CORP <target>

# Plein écran, profondeur de couleur plus élevée, et partage du presse-papiers
rdesktop -f -a 24 -r clipboard:PRIMARYCLIPBOARD <target>

# Monter un lecteur local dans la session (utile pour récupérer/déposer des fichiers)
rdesktop -r disk:share=/tmp/share -u administrator -p 'Password123!' <target>

# Se connecter sur un port RDP non standard
rdesktop -u administrator -p 'Password123!' <target>:33389

Conseils

  • rdesktop est antérieur à NLA sur de nombreux builds et peut échouer face à des hôtes imposant CredSSP/NLA : essayer FreeRDP (xfreerdp) si la connexion est rejetée
  • -g WxH fixe une géométrie de fenêtre précise plutôt que le plein écran, utile sur des liaisons lentes
  • Le pass-the-hash n’est pas pris en charge nativement ici : utiliser xfreerdp /pth:<hash> pour ce workflow
Aide / Page de manuel
Usage: rdesktop [options] server[:port]

   -u: user name
   -d: domain
   -p: password (- to prompt)
   -n: client hostname
   -k: keyboard layout on server
   -g: desktop geometry (WxH)
   -f: full-screen mode
   -b: force bitmap updates
   -a: connection colour depth (8, 15, 16, 24)
   -r: enable specified device redirection
       '-r disk:<share>=<path>' for disk redirection
       '-r clipboard:PRIMARYCLIPBOARD' for clipboard redirection
   -0: attach to console
   -z: enable rdp compression
   -x: RDP5 experience (m modem, b broadband, l lan)
   -T: window title