9

PROBLEM

I use for remote desktop connection script rdesktop. On some machines I get common error without any value.

What can I do after "Connection reset by peer" error?

BGBRUNO
  • 809
  • 1
  • 8
  • 18

4 Answers4

18

SOLUTION

From time to time I forget this setting. The vast majority of it means "Turn off Remote Desktop with NLA".

Set on target "Microsoft Windows (WIN)"

  1. run SystemPropertiesRemote.exe
  2. deselect "Allow connections only from computers running Remote Desktop with NLA"
  3. try to connect from linux client

REF

Thanks to Maccu Falchi

http://marcofalchi.blogspot.sk/2013/03/linux-rdesktop-windows-8-linux-error.html

BGBRUNO
  • 809
  • 1
  • 8
  • 18
6

If you don't have control over the server you are trying to connect to (or having a bit of chicken/egg situation), then use FreeRDP which supports NLA.

On Debian run

sudo apt-get install xfreerdp-x11

On Ubuntu run

sudo apt-get install freerdp-x11

On Fedora 22 run

sudo dnf install -y freerdp

Check here for more details

James Baxter
  • 196
  • 1
  • 3
2

I've been dealing with the same issue. The cursor is there - you just can't see it.

So, instead of grabbing some cursors from Windows and hacking your way around this - just use the "-C" flag to use your current custom color map.

e.g. rdesktop -C -u -d xx.xx.xx.xx

This fixed it just fine for me, and needed no other workarounds.

oratofu
  • 21
  • 2
1

Well, in my case it was not the NLA authentication setting on the server. What has changed -- the operating system on the server was re-installed and so the fingerprint (or the host key) has changed. The freerdp on linux stored the previous fingerprint in a file under your home folder ~/.freerdp/known_hosts.

The error comes from the fact that the server IP address is the same but the fingerprints don't match.

The solution is to clear or delete the ~/.freerdp/known_hosts file on the linux guest.