Results 1 to 7 of 7

Thread: rdesktop always fails with "connection reset by peer"

  1. #1
    Join Date
    Apr 2008
    Location
    /dev/null
    Beans
    116
    Distro
    Ubuntu 10.04 Lucid Lynx

    rdesktop always fails with "connection reset by peer"

    $ rdesktop xx.xx.xx.xx:5000 -r clipboard:CLIPBOARD -r sound:local
    ERROR: send: Connection reset by peer
    ERROR: Connection closed
    Is there a way to ignore this and allow rdesktop to continue?

  2. #2
    Join Date
    Nov 2008
    Beans
    16

    Re: rdesktop always fails with "connection reset by peer"

    An explanation from the microsoft website might help:
    This normally results from a loss of the connection on the remote socket due to a timeout or a restart... This reset could be generated locally by the network system when it detects a connection failure, or it might be received from the remote host.
    One of the most common problems is that windows remote desktop only allows one connection at a time to any given machine if it's not a windows server variant. That error probably means you at least got through to the machine, but can no longer connect. Try making sure you can ping the machine?

    At any rate, that's a fatal error, so it's not something that can be "ignored." If you still have problems using remote desktop, maybe VNC will work better.

    Hope this helps!

  3. #3
    Join Date
    May 2008
    Location
    Irvine, CA
    Beans
    189
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rdesktop always fails with "connection reset by peer"

    is remote desktop on your windows machine set to allow connection? also make sure port 3389 (if i remember right, thats RDC protocol) is open.

    Check your windows firewall.

  4. #4
    Join Date
    Feb 2010
    Beans
    1

    rdesktop Connection reset by peer Possible Solution

    Hi.. I was having the same problem:
    rdesktop dies with RECV Connection reset by peer just after the remote desktop window opens momentarily.

    Then I discovered it worked when running under root, and you can see in an strace that there is a permission denied when trying to access the .rdesktop hidden dir within your home directory, when not running as root.

    When rdesktop fails to access the RDP license file in your .rdesktop dir, the remote Windows terminal server terminates the connection because of an invalid license (hence the reset by peer).

    If this is the cause in your case, try the following in the terminal to fix it, and then retry rdesktop:

    sudo chown -R $USER.$USER ~/.rdesktop

  5. #5
    Join Date
    Dec 2008
    Beans
    50

    Re: rdesktop always fails with "connection reset by peer"

    Quote Originally Posted by LinuxRocks713 View Post
    Is there a way to ignore this and allow rdesktop to continue?
    Is the server you are connecting to configured to use SSL security with RDP? I do not think that rdesktop can connect to an SSL encrypted RDP.

    There may be a way to establish the SSL connection with stunnel and then use rdesktop. I am not 100% clear on how to use stunnel...

    The Fish

  6. #6
    Join Date
    Mar 2005
    Beans
    9

    Re: rdesktop always fails with "connection reset by peer"

    I was able to fix this problem by going to the Remote tab in System Properties on my Win7 Pro machine. Select "Allow connections from computers running any version of Remote Desktop (less secure)".

  7. #7
    Join Date
    Dec 2007
    Beans
    50

    Re: rdesktop always fails with "connection reset by peer"

    I am using Windows 2008 R2 with RDS CALS (Remote Desktop Services Client Access Licenses), and was having the same problem. I was able to fix it by changing the Security Layer accepted by Windows 2008.

    Here's how to do that:


    Open your server manager. That can be done as follows:

    Start > Administrative Tools > Server Manager

    Once in there, go to:

    Roles > Remote Destkop Services > RD Session Host Configuration: <YOUR SERVER NAME>

    In there, under the connections window, find your connection name. I am working in a testing environment, and only have one connection, called "RDS".

    Right-click on the connection name (RDS for me) 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".

    After doing that, I was able to connect to the server.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •