When you connect to a windows server from Linux computer, Sometimes rdesktop dies with RECV Connection reset by peer error:
ERROR: send: Connection reset by peer
ERROR: Connection closed
Here is the solution for this issue:1) Login to the Windows server from any other windows computer.
2) Open System properties and select 'Remote' tab. That can be done as follows:
Run > SystemPropertiesRemote.exe
In Windows 20123) Deselect "Allow connections only from computers running Remote Desktop with Network Level Authentication"
In Windown 2008 R23) Select "Allow connections from computers running any version of Remote Desktop (less secure)
If the above method failed try following method as well
Open your server manager. That can be done as follows:
Start > Administrative Tools > Remote Destkop Services > Remote Desktop Session Host Configuration.In there, under the connections window, find the connection name like "RDP-Tcp".
Right-click on the connection name (RDP-Tcp) and click properties.
In the properties window, click on the "General" tab. In the general tab, under the Security section, inside the "Security Layer" drop-down menu, change the selection from "SSL (TLS 1.0)" to "RDP Security Layer".
Cheers