LinuxCommandLibrary

nxc-rdp

Connect to Windows systems via RDP

TLDR

Search for valid credentials by trying out every combination in the specified lists of usernames and passwords

$ nxc rdp [192.168.178.2] [[-u|--username]] [path/to/usernames.txt] [[-p|--password]] [path/to/passwords.txt]
copy

Take a screenshot after waiting the for specified number of seconds
$ nxc rdp [192.168.178.2] [[-u|--username]] [username] [[-p|--password]] [password] --screenshot --screentime [10]
copy

Take a screenshot in the specified resolution
$ nxc rdp [192.168.178.2] [[-u|--username]] [username] [[-p|--password]] [password] --screenshot --res [1024x768]
copy

Take a screenshot of the RDP login prompt if Network Level Authentication is disabled
$ nxc rdp [192.168.178.2] [[-u|--username]] [username] [[-p|--password]] [password] --nla-screenshot
copy

SYNOPSIS

nxc-rdp [options]

PARAMETERS

server
    The hostname or IP address of the NX server.

-geometry x
    Sets the initial window geometry (width and height).

-dpi
    Sets the DPI (dots per inch) for the session.

-fullscreen
    Starts the session in fullscreen mode.

-title
    Sets the title of the nx client window.

-name
    Sets the name of the nx client window.

-composite
    Enables composite mode for better display handling.

-help
    Displays help information about the command.

DESCRIPTION

nxc-rdp is a command-line tool used to initiate Remote Desktop Protocol (RDP) sessions through an NX server. This allows users to connect to remote Windows desktops or servers from a Linux environment, leveraging the NX protocol for improved performance, especially over slower network connections. It acts as a bridge, translating the NX protocol requests from the local client to RDP requests understood by the remote server. This is particularly useful when a direct RDP connection is not feasible or desired due to network constraints or security policies.
The command handles authentication, session management, and data transmission between the NX client and the RDP server. By utilizing NX, nxc-rdp can offer advantages like bandwidth optimization and session resilience, making remote desktop access more efficient and reliable. It is often found in environments that utilize the NoMachine NX suite of tools for remote access solutions. The tool itself does not provide remote desktop functionality, rather it proxies RDP requests via NX.

CAVEATS

This command requires an NX server to be running and configured to handle RDP connections. It is typically used in conjunction with other NoMachine software components. It is essential to ensure that the server is configured to allow connections from the client’s IP address.

AUTHENTICATION

Authentication is handled by the NX server. The user will need to authenticate with the NX server before the RDP session is established.

CONFIGURATION

The specific configuration options for the RDP session, such as keyboard layout and audio settings, are typically configured on the NX server.

TROUBLESHOOTING

If the `nxc-rdp` connection fails, check the NX server logs for error messages. Common issues include incorrect server addresses, authentication failures, and RDP server configuration problems.

HISTORY

The `nxc-rdp` command is part of the NoMachine NX suite, which has evolved over time to provide remote access and desktop virtualization solutions. It was developed to provide a more efficient alternative to direct RDP connections, especially in environments with limited bandwidth or high latency. The command leverages the NX protocol, known for its compression and caching capabilities, to optimize RDP sessions over networks.

SEE ALSO

nxserver(1), nxclient(1)

Copied to clipboard