Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12884

SSH Maximum packet size too low is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 3.2.1
    • Qt Creator 3.2.0
    • Remote Linux
    • None
    • 38ffff88da1f0e1b2aa6e6439d6324f717f83191

    Description

      I'm the developer for Dropbear SSH, I've had a report that Qt Creator can't connect to 2014.64:

      11:37:10: Connecting to device...
      11:37:11: Connection error: SSH Protocol error: Maximum packet size too low.
      11:37:11: Deploy step failed.

      I think the check in Qt Creator is wrong:
      https://qt.gitorious.org/qt-creator/qt-creator/source/4c76e40617d22d3578bb95973b54b0e266591e7c:src/libs/utils/ssh/sshchannel.cpp#L138

      const quint32 MinMaxPacketSize = 32768;
      ...
      if (remoteMaxPacketSize < MinMaxPacketSize)

      { throw SSH_SERVER_EXCEPTION(SSH_DISCONNECT_PROTOCOL_ERROR, "Maximum packet size too low."); }

      The spec https://tools.ietf.org/html/rfc4254#section-5.1 doesn't have a minimum maximum packet size for channels. The number 32768 comes from the protocol layer above in https://tools.ietf.org/html/rfc4253#section-6.1

      It will be easy to increase Dropbear's limit slightly (currently 32759, it allows for headers between the channel and transport layers). It's probably worth fixing in Qt Creator too.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            matt Matt Johnston
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes