5

I've been asked to test from time to time some RDP credentials, and it must be done through a linux server.

Is there any way to test some RDP credentials in command line, without a X11 server ?

3 Answers 3

1

xfreerdp is an x11 client. You could try to monitor TCP 3389 if you don't want the required x11 parts.

https://support.microsoft.com/en-us/help/187628/using-telnet-to-test-port-3389-functionality

2
  • Only testing the port is not enough, I need to test the credentials.
    – SBO
    Oct 18, 2017 at 14:14
  • 2
    Thanks for the info, I just needed to similarly test config through firewalls, credentials... so I used your tips and I managed to use it with: xfreerdp /cert-ignore /auth-only /d:microsoft.com /u:bgates /p:Melinda4Ever /v:remotes.microsoft.com /port:3390
    – JokinAU
    Jun 11, 2018 at 9:43
1

Did some tests and research on my side, it can be done with freerdp, with the following command line :

xfreerdp --ignore-certificate --authonly -u user -p pass host
0

On Ubuntu it would be this:

sudo apt-get install freerdp2-x11
xfreerdp /cert:ignore +auth-only /u:user /p:pass /v:host

And if you don't have a display, you can use a virtual one:

sudo apt-get install xvfb
xvfb-run -a xfreerdp /cert:ignore +auth-only /u:user /p:pass /v:host

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .