Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. Newbee's problem related to ssh configuration
QtWS25 Last Chance

Newbee's problem related to ssh configuration

Scheduled Pinned Locked Moved Unsolved Qt Contribution
14 Posts 3 Posters 5.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ylink
    wrote on 16 Sept 2018, 01:06 last edited by
    #1

    I am new here and want to start to contribute to the Qt project. I followed the step described in https://wiki.qt.io/Setting_up_Gerrit and got stuck in the 7th step of "Local Setup". I tried the command "ssh codereview.qt-project.org-gerrit gerrit stream-events" in both Windows PowerShell and Bash in Windows 10. however I received the error message: "ssh: Could not resolve hostname codereview.qt-project.org-gerrit: Name or service not known". How do I fix this? If I didn't provide enough information, please state in the comment and I'll add up.

    A 1 Reply Last reply 16 Sept 2018, 07:04
    1
    • Y ylink
      16 Sept 2018, 01:06

      I am new here and want to start to contribute to the Qt project. I followed the step described in https://wiki.qt.io/Setting_up_Gerrit and got stuck in the 7th step of "Local Setup". I tried the command "ssh codereview.qt-project.org-gerrit gerrit stream-events" in both Windows PowerShell and Bash in Windows 10. however I received the error message: "ssh: Could not resolve hostname codereview.qt-project.org-gerrit: Name or service not known". How do I fix this? If I didn't provide enough information, please state in the comment and I'll add up.

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 16 Sept 2018, 07:04 last edited by aha_1980
      #2

      Hi @ylink,

      It seems there is a bug in the wiki, it should be

      ssh codereview.qt-project.org gerrit stream-events

      That said, I don't know what stream-events does. For testing, I always use

      ssh -p 29418 <username>@codereview.qt-project.org. I have to specify username and port because I did not setup the sshconfig file.

      Edit: Fixed the URL in the wiki

      Qt has to stay free or it will die.

      Y 1 Reply Last reply 16 Sept 2018, 10:24
      1
      • A aha_1980
        16 Sept 2018, 07:04

        Hi @ylink,

        It seems there is a bug in the wiki, it should be

        ssh codereview.qt-project.org gerrit stream-events

        That said, I don't know what stream-events does. For testing, I always use

        ssh -p 29418 <username>@codereview.qt-project.org. I have to specify username and port because I did not setup the sshconfig file.

        Edit: Fixed the URL in the wiki

        Y Offline
        Y Offline
        ylink
        wrote on 16 Sept 2018, 10:24 last edited by
        #3

        @aha_1980 said in Newbee's problem related to ssh configuration:

        ssh -p 29418 <username>@codereview.qt-project.org

        Thanks for your answer. I have tried your approach and there is no error message related to resolving hostname. Unfortunately, program returned a new error message: Permission denied (publickey). How can I fix this problem?

        A 1 Reply Last reply 16 Sept 2018, 10:46
        0
        • Y ylink
          16 Sept 2018, 10:24

          @aha_1980 said in Newbee's problem related to ssh configuration:

          ssh -p 29418 <username>@codereview.qt-project.org

          Thanks for your answer. I have tried your approach and there is no error message related to resolving hostname. Unfortunately, program returned a new error message: Permission denied (publickey). How can I fix this problem?

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 16 Sept 2018, 10:46 last edited by
          #4

          Hi @ylink,

          have you uploaded you SSH public key to Gerrit? (Step 4 and 5)

          Qt has to stay free or it will die.

          Y 1 Reply Last reply 16 Sept 2018, 10:57
          0
          • A aha_1980
            16 Sept 2018, 10:46

            Hi @ylink,

            have you uploaded you SSH public key to Gerrit? (Step 4 and 5)

            Y Offline
            Y Offline
            ylink
            wrote on 16 Sept 2018, 10:57 last edited by
            #5

            @aha_1980 alt text

            I already did it and It shows like this. Is the state right?

            A 1 Reply Last reply 16 Sept 2018, 11:02
            1
            • Y ylink
              16 Sept 2018, 10:57

              @aha_1980 alt text

              I already did it and It shows like this. Is the state right?

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 16 Sept 2018, 11:02 last edited by
              #6

              Hi @ylink,

              yes that looks good. And you use the user name that is in the Profile section as the SSH <username>?

              Can you run ssh -vvv -p 29418 <username>@codereview.qt-project.org and see where it complain?

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              1
              • Y Offline
                Y Offline
                ylink
                wrote on 16 Sept 2018, 13:15 last edited by
                #7

                It complains as follow:
                OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
                debug1: Reading configuration data /etc/ssh/ssh_config
                debug1: /etc/ssh/ssh_config line 19: Applying options for *
                debug2: resolving "codereview.qt-project.org" port 29418
                debug2: ssh_connect_direct: needpriv 0
                debug1: Connecting to codereview.qt-project.org [54.229.21.112] port 29418.
                debug1: Connection established.
                debug1: identity file /home/ylink/.ssh/id_rsa type 1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_rsa-cert type -1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_dsa type -1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_dsa-cert type -1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_ecdsa type -1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_ecdsa-cert type -1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_ed25519 type -1
                debug1: key_load_public: No such file or directory
                debug1: identity file /home/ylink/.ssh/id_ed25519-cert type -1
                debug1: Enabling compatibility mode for protocol 2.0
                debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
                debug1: Remote protocol version 2.0, remote software version GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                debug1: no match: GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                debug2: fd 3 setting O_NONBLOCK
                debug1: Authenticating to codereview.qt-project.org:29418 as 'ylink'
                debug3: put_host_port: [codereview.qt-project.org]:29418
                debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
                debug3: send packet: type 20
                debug1: SSH2_MSG_KEXINIT sent
                debug3: receive packet: type 20
                debug1: SSH2_MSG_KEXINIT received
                debug2: local client KEXINIT proposal
                debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,ext-info-c
                debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
                debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
                debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
                debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                debug2: compression ctos: none,zlib@openssh.com,zlib
                debug2: compression stoc: none,zlib@openssh.com,zlib
                debug2: languages ctos:
                debug2: languages stoc:
                debug2: first_kex_follows 0
                debug2: reserved 0
                debug2: peer server KEXINIT proposal
                debug2: KEX algorithms: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
                debug2: host key algorithms: ssh-rsa
                debug2: ciphers ctos: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                debug2: ciphers stoc: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                debug2: MACs ctos: hmac-sha1
                debug2: MACs stoc: hmac-sha1
                debug2: compression ctos: none
                debug2: compression stoc: none
                debug2: languages ctos:
                debug2: languages stoc:
                debug2: first_kex_follows 0
                debug2: reserved 0
                debug1: kex: algorithm: diffie-hellman-group14-sha1
                debug1: kex: host key algorithm: ssh-rsa
                debug1: kex: server->client cipher: aes128-cbc MAC: hmac-sha1 compression: none
                debug1: kex: client->server cipher: aes128-cbc MAC: hmac-sha1 compression: none
                debug1: sending SSH2_MSG_KEXDH_INIT
                debug2: bits set: 1023/2048
                debug3: send packet: type 30
                debug1: expecting SSH2_MSG_KEXDH_REPLY
                debug3: receive packet: type 31
                debug1: Server host key: ssh-rsa SHA256:gA0QQVa8K2cbFAra8zmwyXX3yAPyB4lhMZxxafpcXUM
                debug3: put_host_port: [54.229.21.112]:29418
                debug3: put_host_port: [codereview.qt-project.org]:29418
                debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:2
                debug3: load_hostkeys: loaded 1 keys from [54.229.21.112]:29418
                debug1: Host '[codereview.qt-project.org]:29418' is known and matches the RSA host key.
                debug1: Found key in /home/ylink/.ssh/known_hosts:1
                debug2: bits set: 960/2048
                debug3: send packet: type 21
                debug2: set_newkeys: mode 1
                debug1: rekey after 4294967296 blocks
                debug1: SSH2_MSG_NEWKEYS sent
                debug1: expecting SSH2_MSG_NEWKEYS
                debug3: receive packet: type 21
                debug2: set_newkeys: mode 0
                debug1: rekey after 4294967296 blocks
                debug1: SSH2_MSG_NEWKEYS received
                debug2: key: /home/ylink/.ssh/id_rsa (0x7fffd1503190)
                debug2: key: /home/ylink/.ssh/id_dsa ((nil))
                debug2: key: /home/ylink/.ssh/id_ecdsa ((nil))
                debug2: key: /home/ylink/.ssh/id_ed25519 ((nil))
                debug3: send packet: type 5
                debug3: receive packet: type 6
                debug2: service_accept: ssh-userauth
                debug1: SSH2_MSG_SERVICE_ACCEPT received
                debug3: send packet: type 50
                debug3: receive packet: type 51
                debug1: Authentications that can continue: publickey
                debug3: start over, passed a different list publickey
                debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
                debug3: authmethod_lookup publickey
                debug3: remaining preferred: keyboard-interactive,password
                debug3: authmethod_is_enabled publickey
                debug1: Next authentication method: publickey
                debug1: Offering RSA public key: /home/ylink/.ssh/id_rsa
                debug3: send_pubkey_test
                debug3: send packet: type 50
                debug2: we sent a publickey packet, wait for reply
                debug3: receive packet: type 60
                debug1: Server accepts key: pkalg ssh-rsa blen 535
                debug2: input_userauth_pk_ok: fp SHA256:9UsDQie9K+NMAVY40/bQ5GSYmyCo+jFQ6A/TrUJj3us
                debug3: sign_and_send_pubkey: RSA SHA256:9UsDQie9K+NMAVY40/bQ5GSYmyCo+jFQ6A/TrUJj3us
                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                Permissions 0777 for '/home/ylink/.ssh/id_rsa' are too open.
                It is required that your private key files are NOT accessible by others.
                This private key will be ignored.
                Load key "/home/ylink/.ssh/id_rsa": bad permissions
                debug1: Trying private key: /home/ylink/.ssh/id_dsa
                debug3: no such identity: /home/ylink/.ssh/id_dsa: No such file or directory
                debug1: Trying private key: /home/ylink/.ssh/id_ecdsa
                debug3: no such identity: /home/ylink/.ssh/id_ecdsa: No such file or directory
                debug1: Trying private key: /home/ylink/.ssh/id_ed25519
                debug3: no such identity: /home/ylink/.ssh/id_ed25519: No such file or directory
                debug2: we did not send a packet, disable method
                debug1: No more authentication methods to try.
                Permission denied (publickey).

                The problem is I run command "ssh-keygen -t rsa -b 4096 -C youremail@email.com -f ~/.ssh/yourgerritusername_id_rsa" as wiki described before and I only got 2 files, a private key and a public key. I don't know why the connection complains lack of other files?

                A 1 Reply Last reply 16 Sept 2018, 13:28
                0
                • Y ylink
                  16 Sept 2018, 13:15

                  It complains as follow:
                  OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
                  debug1: Reading configuration data /etc/ssh/ssh_config
                  debug1: /etc/ssh/ssh_config line 19: Applying options for *
                  debug2: resolving "codereview.qt-project.org" port 29418
                  debug2: ssh_connect_direct: needpriv 0
                  debug1: Connecting to codereview.qt-project.org [54.229.21.112] port 29418.
                  debug1: Connection established.
                  debug1: identity file /home/ylink/.ssh/id_rsa type 1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_rsa-cert type -1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_dsa type -1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_dsa-cert type -1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_ecdsa type -1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_ecdsa-cert type -1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_ed25519 type -1
                  debug1: key_load_public: No such file or directory
                  debug1: identity file /home/ylink/.ssh/id_ed25519-cert type -1
                  debug1: Enabling compatibility mode for protocol 2.0
                  debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
                  debug1: Remote protocol version 2.0, remote software version GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                  debug1: no match: GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                  debug2: fd 3 setting O_NONBLOCK
                  debug1: Authenticating to codereview.qt-project.org:29418 as 'ylink'
                  debug3: put_host_port: [codereview.qt-project.org]:29418
                  debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                  debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                  debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                  debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
                  debug3: send packet: type 20
                  debug1: SSH2_MSG_KEXINIT sent
                  debug3: receive packet: type 20
                  debug1: SSH2_MSG_KEXINIT received
                  debug2: local client KEXINIT proposal
                  debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,ext-info-c
                  debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
                  debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
                  debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc
                  debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                  debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                  debug2: compression ctos: none,zlib@openssh.com,zlib
                  debug2: compression stoc: none,zlib@openssh.com,zlib
                  debug2: languages ctos:
                  debug2: languages stoc:
                  debug2: first_kex_follows 0
                  debug2: reserved 0
                  debug2: peer server KEXINIT proposal
                  debug2: KEX algorithms: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
                  debug2: host key algorithms: ssh-rsa
                  debug2: ciphers ctos: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                  debug2: ciphers stoc: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                  debug2: MACs ctos: hmac-sha1
                  debug2: MACs stoc: hmac-sha1
                  debug2: compression ctos: none
                  debug2: compression stoc: none
                  debug2: languages ctos:
                  debug2: languages stoc:
                  debug2: first_kex_follows 0
                  debug2: reserved 0
                  debug1: kex: algorithm: diffie-hellman-group14-sha1
                  debug1: kex: host key algorithm: ssh-rsa
                  debug1: kex: server->client cipher: aes128-cbc MAC: hmac-sha1 compression: none
                  debug1: kex: client->server cipher: aes128-cbc MAC: hmac-sha1 compression: none
                  debug1: sending SSH2_MSG_KEXDH_INIT
                  debug2: bits set: 1023/2048
                  debug3: send packet: type 30
                  debug1: expecting SSH2_MSG_KEXDH_REPLY
                  debug3: receive packet: type 31
                  debug1: Server host key: ssh-rsa SHA256:gA0QQVa8K2cbFAra8zmwyXX3yAPyB4lhMZxxafpcXUM
                  debug3: put_host_port: [54.229.21.112]:29418
                  debug3: put_host_port: [codereview.qt-project.org]:29418
                  debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                  debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                  debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                  debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                  debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:2
                  debug3: load_hostkeys: loaded 1 keys from [54.229.21.112]:29418
                  debug1: Host '[codereview.qt-project.org]:29418' is known and matches the RSA host key.
                  debug1: Found key in /home/ylink/.ssh/known_hosts:1
                  debug2: bits set: 960/2048
                  debug3: send packet: type 21
                  debug2: set_newkeys: mode 1
                  debug1: rekey after 4294967296 blocks
                  debug1: SSH2_MSG_NEWKEYS sent
                  debug1: expecting SSH2_MSG_NEWKEYS
                  debug3: receive packet: type 21
                  debug2: set_newkeys: mode 0
                  debug1: rekey after 4294967296 blocks
                  debug1: SSH2_MSG_NEWKEYS received
                  debug2: key: /home/ylink/.ssh/id_rsa (0x7fffd1503190)
                  debug2: key: /home/ylink/.ssh/id_dsa ((nil))
                  debug2: key: /home/ylink/.ssh/id_ecdsa ((nil))
                  debug2: key: /home/ylink/.ssh/id_ed25519 ((nil))
                  debug3: send packet: type 5
                  debug3: receive packet: type 6
                  debug2: service_accept: ssh-userauth
                  debug1: SSH2_MSG_SERVICE_ACCEPT received
                  debug3: send packet: type 50
                  debug3: receive packet: type 51
                  debug1: Authentications that can continue: publickey
                  debug3: start over, passed a different list publickey
                  debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
                  debug3: authmethod_lookup publickey
                  debug3: remaining preferred: keyboard-interactive,password
                  debug3: authmethod_is_enabled publickey
                  debug1: Next authentication method: publickey
                  debug1: Offering RSA public key: /home/ylink/.ssh/id_rsa
                  debug3: send_pubkey_test
                  debug3: send packet: type 50
                  debug2: we sent a publickey packet, wait for reply
                  debug3: receive packet: type 60
                  debug1: Server accepts key: pkalg ssh-rsa blen 535
                  debug2: input_userauth_pk_ok: fp SHA256:9UsDQie9K+NMAVY40/bQ5GSYmyCo+jFQ6A/TrUJj3us
                  debug3: sign_and_send_pubkey: RSA SHA256:9UsDQie9K+NMAVY40/bQ5GSYmyCo+jFQ6A/TrUJj3us
                  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                  @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
                  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                  Permissions 0777 for '/home/ylink/.ssh/id_rsa' are too open.
                  It is required that your private key files are NOT accessible by others.
                  This private key will be ignored.
                  Load key "/home/ylink/.ssh/id_rsa": bad permissions
                  debug1: Trying private key: /home/ylink/.ssh/id_dsa
                  debug3: no such identity: /home/ylink/.ssh/id_dsa: No such file or directory
                  debug1: Trying private key: /home/ylink/.ssh/id_ecdsa
                  debug3: no such identity: /home/ylink/.ssh/id_ecdsa: No such file or directory
                  debug1: Trying private key: /home/ylink/.ssh/id_ed25519
                  debug3: no such identity: /home/ylink/.ssh/id_ed25519: No such file or directory
                  debug2: we did not send a packet, disable method
                  debug1: No more authentication methods to try.
                  Permission denied (publickey).

                  The problem is I run command "ssh-keygen -t rsa -b 4096 -C youremail@email.com -f ~/.ssh/yourgerritusername_id_rsa" as wiki described before and I only got 2 files, a private key and a public key. I don't know why the connection complains lack of other files?

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 16 Sept 2018, 13:28 last edited by aha_1980
                  #8

                  @ylink

                  could be QTQAINFRA-1530, please see there for workarounds.

                  regards

                  Edit:

                  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                  @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
                  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                  Permissions 0777 for '/home/ylink/.ssh/id_rsa' are too open.
                  It is required that your private key files are NOT accessible by others.

                  please fix that

                  Qt has to stay free or it will die.

                  Y 1 Reply Last reply 16 Sept 2018, 14:13
                  0
                  • A aha_1980
                    16 Sept 2018, 13:28

                    @ylink

                    could be QTQAINFRA-1530, please see there for workarounds.

                    regards

                    Edit:

                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                    @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                    Permissions 0777 for '/home/ylink/.ssh/id_rsa' are too open.
                    It is required that your private key files are NOT accessible by others.

                    please fix that

                    Y Offline
                    Y Offline
                    ylink
                    wrote on 16 Sept 2018, 14:13 last edited by
                    #9

                    @aha_1980 Here's another error message after fixing the private key problem......The message is "packet_write_wait: Connection to 54.229,21,112 port 29418: Broken pipe"

                    A 1 Reply Last reply 16 Sept 2018, 14:52
                    0
                    • Y ylink
                      16 Sept 2018, 14:13

                      @aha_1980 Here's another error message after fixing the private key problem......The message is "packet_write_wait: Connection to 54.229,21,112 port 29418: Broken pipe"

                      A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 16 Sept 2018, 14:52 last edited by
                      #10

                      @ylink please post the ssh -vvv output again...

                      Qt has to stay free or it will die.

                      Y 1 Reply Last reply 16 Sept 2018, 15:18
                      0
                      • A aha_1980
                        16 Sept 2018, 14:52

                        @ylink please post the ssh -vvv output again...

                        Y Offline
                        Y Offline
                        ylink
                        wrote on 16 Sept 2018, 15:18 last edited by
                        #11

                        @aha_1980 Record:
                        OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n 7 Dec 2017
                        debug1: Reading configuration data /home/ylink/.ssh/config
                        debug1: /home/ylink/.ssh/config line 1: Applying options for *
                        debug1: Reading configuration data /etc/ssh/ssh_config
                        debug1: /etc/ssh/ssh_config line 19: Applying options for *
                        debug2: resolving "codereview.qt-project.org" port 29418
                        debug2: ssh_connect_direct: needpriv 0
                        debug1: Connecting to codereview.qt-project.org [54.229.21.112] port 29418.
                        debug1: Connection established.
                        debug1: identity file /home/ylink/.ssh/id_rsa type 0
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_rsa-cert type -1
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_dsa type -1
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_dsa-cert type -1
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_ecdsa type -1
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_ecdsa-cert type -1
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_ed25519 type -1
                        debug1: key_load_public: No such file or directory
                        debug1: identity file /home/ylink/.ssh/id_ed25519-cert type -1
                        debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
                        debug1: Remote protocol version 2.0, remote software version GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                        debug1: no match: GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                        debug2: fd 3 setting O_NONBLOCK
                        debug1: Authenticating to codereview.qt-project.org:29418 as 'ylink'
                        debug3: put_host_port: [codereview.qt-project.org]:29418
                        debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                        debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                        debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                        debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
                        debug3: send packet: type 20
                        debug1: SSH2_MSG_KEXINIT sent
                        debug3: receive packet: type 20
                        debug1: SSH2_MSG_KEXINIT received
                        debug2: local client KEXINIT proposal
                        debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
                        debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
                        debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
                        debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
                        debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                        debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                        debug2: compression ctos: none,zlib@openssh.com,zlib
                        debug2: compression stoc: none,zlib@openssh.com,zlib
                        debug2: languages ctos:
                        debug2: languages stoc:
                        debug2: first_kex_follows 0
                        debug2: reserved 0
                        debug2: peer server KEXINIT proposal
                        debug2: KEX algorithms: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
                        debug2: host key algorithms: ssh-rsa
                        debug2: ciphers ctos: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                        debug2: ciphers stoc: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                        debug2: MACs ctos: hmac-sha1
                        debug2: MACs stoc: hmac-sha1
                        debug2: compression ctos: none
                        debug2: compression stoc: none
                        debug2: languages ctos:
                        debug2: languages stoc:
                        debug2: first_kex_follows 0
                        debug2: reserved 0
                        debug1: kex: algorithm: diffie-hellman-group14-sha1
                        debug1: kex: host key algorithm: ssh-rsa
                        debug1: kex: server->client cipher: aes128-cbc MAC: hmac-sha1 compression: none
                        debug1: kex: client->server cipher: aes128-cbc MAC: hmac-sha1 compression: none
                        debug1: sending SSH2_MSG_KEXDH_INIT
                        debug2: bits set: 1046/2048
                        debug3: send packet: type 30
                        debug1: expecting SSH2_MSG_KEXDH_REPLY
                        debug3: receive packet: type 31
                        debug1: Server host key: ssh-rsa SHA256:gA0QQVa8K2cbFAra8zmwyXX3yAPyB4lhMZxxafpcXUM
                        debug3: put_host_port: [54.229.21.112]:29418
                        debug3: put_host_port: [codereview.qt-project.org]:29418
                        debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                        debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                        debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                        debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                        debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:2
                        debug3: load_hostkeys: loaded 1 keys from [54.229.21.112]:29418
                        debug1: Host '[codereview.qt-project.org]:29418' is known and matches the RSA host key.
                        debug1: Found key in /home/ylink/.ssh/known_hosts:1
                        debug2: bits set: 1032/2048
                        debug3: send packet: type 21
                        debug2: set_newkeys: mode 1
                        debug1: rekey after 4294967296 blocks
                        debug1: SSH2_MSG_NEWKEYS sent
                        debug1: expecting SSH2_MSG_NEWKEYS
                        debug3: receive packet: type 21
                        debug1: SSH2_MSG_NEWKEYS received
                        debug2: set_newkeys: mode 0
                        debug1: rekey after 4294967296 blocks
                        debug2: key: /home/ylink/.ssh/id_rsa (0x556f009aed30), agent
                        debug2: key: /home/ylink/.ssh/id_dsa ((nil))
                        debug2: key: /home/ylink/.ssh/id_ecdsa ((nil))
                        debug2: key: /home/ylink/.ssh/id_ed25519 ((nil))
                        debug3: send packet: type 5
                        debug3: receive packet: type 6
                        debug2: service_accept: ssh-userauth
                        debug1: SSH2_MSG_SERVICE_ACCEPT received
                        debug3: send packet: type 50
                        debug3: receive packet: type 51
                        debug1: Authentications that can continue: publickey
                        debug3: start over, passed a different list publickey
                        debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
                        debug3: authmethod_lookup publickey
                        debug3: remaining preferred: keyboard-interactive,password
                        debug3: authmethod_is_enabled publickey
                        debug1: Next authentication method: publickey
                        debug1: Offering public key: RSA SHA256:XmzlIjY+O/WVFdSsAPGl4UW3jL6MiiLvtf2F3vjUqfg /home/ylink/.ssh/id_rsa
                        debug3: send_pubkey_test
                        debug3: send packet: type 50
                        debug2: we sent a publickey packet, wait for reply
                        debug3: receive packet: type 60
                        debug1: Server accepts key: pkalg ssh-rsa blen 535
                        debug2: input_userauth_pk_ok: fp SHA256:XmzlIjY+O/WVFdSsAPGl4UW3jL6MiiLvtf2F3vjUqfg
                        debug3: sign_and_send_pubkey: RSA SHA256:XmzlIjY+O/WVFdSsAPGl4UW3jL6MiiLvtf2F3vjUqfg
                        debug3: send packet: type 50
                        debug3: receive packet: type 52
                        debug1: Authentication succeeded (publickey).
                        Authenticated to codereview.qt-project.org ([54.229.21.112]:29418).
                        debug1: channel 0: new [client-session]
                        debug3: ssh_session2_open: channel_new: 0
                        debug2: channel 0: send open
                        debug3: send packet: type 90
                        debug1: Entering interactive session.
                        debug1: pledge: network
                        debug3: receive packet: type 91
                        debug2: channel_input_open_confirmation: channel 0: callback start
                        debug2: fd 3 setting TCP_NODELAY
                        debug3: ssh_packet_set_tos: set IP_TOS 0x10
                        debug2: client_session2_setup: id 0
                        debug2: channel 0: request pty-req confirm 1
                        debug3: send packet: type 98
                        debug1: Sending environment.
                        debug3: Ignored env CLUTTER_IM_MODULE
                        debug3: Ignored env LS_COLORS
                        debug1: Sending env LC_MEASUREMENT = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env LESSCLOSE
                        debug1: Sending env LC_PAPER = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug1: Sending env LC_MONETARY = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env XDG_MENU_PREFIX
                        debug1: Sending env LANG = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env DISPLAY
                        debug3: Ignored env GNOME_SHELL_SESSION_MODE
                        debug3: Ignored env C_INCLUDE_PATH
                        debug3: Ignored env COLORTERM
                        debug3: Ignored env USERNAME
                        debug3: Ignored env XDG_VTNR
                        debug3: Ignored env SSH_AUTH_SOCK
                        debug3: Ignored env MANDATORY_PATH
                        debug1: Sending env LC_NAME = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env XDG_SESSION_ID
                        debug3: Ignored env USER
                        debug3: Ignored env DESKTOP_SESSION
                        debug3: Ignored env QT4_IM_MODULE
                        debug3: Ignored env TEXTDOMAINDIR
                        debug3: Ignored env GNOME_TERMINAL_SCREEN
                        debug3: Ignored env DEFAULTS_PATH
                        debug3: Ignored env PWD
                        debug3: Ignored env HOME
                        debug3: Ignored env TEXTDOMAIN
                        debug3: Ignored env SSH_AGENT_PID
                        debug3: Ignored env QT_ACCESSIBILITY
                        debug3: Ignored env XDG_SESSION_TYPE
                        debug3: Ignored env XDG_DATA_DIRS
                        debug3: Ignored env XDG_SESSION_DESKTOP
                        debug1: Sending env LC_ADDRESS = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env LIBRARY_PATH
                        debug1: Sending env LC_NUMERIC = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env GTK_MODULES
                        debug3: Ignored env PAPERSIZE
                        debug3: Ignored env WINDOWPATH
                        debug3: Ignored env TERM
                        debug3: Ignored env VTE_VERSION
                        debug3: Ignored env SHELL
                        debug3: Ignored env QT_IM_MODULE
                        debug3: Ignored env XMODIFIERS
                        debug3: Ignored env IM_CONFIG_PHASE
                        debug3: Ignored env XDG_CURRENT_DESKTOP
                        debug3: Ignored env GPG_AGENT_INFO
                        debug3: Ignored env GNOME_TERMINAL_SERVICE
                        debug3: Ignored env SHLVL
                        debug3: Ignored env XDG_SEAT
                        debug3: Ignored env LANGUAGE
                        debug1: Sending env LC_TELEPHONE = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env GDMSESSION
                        debug3: Ignored env GNOME_DESKTOP_SESSION_ID
                        debug3: Ignored env LOGNAME
                        debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
                        debug3: Ignored env XDG_RUNTIME_DIR
                        debug3: Ignored env XAUTHORITY
                        debug3: Ignored env CPLUS_INCLUDE_PATH
                        debug3: Ignored env XDG_CONFIG_DIRS
                        debug3: Ignored env PATH
                        debug1: Sending env LC_IDENTIFICATION = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env SESSION_MANAGER
                        debug3: Ignored env LESSOPEN
                        debug3: Ignored env GTK_IM_MODULE
                        debug1: Sending env LC_TIME = zh_CN.UTF-8
                        debug2: channel 0: request env confirm 0
                        debug3: send packet: type 98
                        debug3: Ignored env _
                        debug2: channel 0: request shell confirm 1
                        debug3: send packet: type 98
                        debug2: channel_input_open_confirmation: channel 0: callback done
                        debug2: channel 0: open confirm rwindow 2097152 rmax 32768
                        debug3: send packet: type 1
                        packet_write_wait: Connection to 54.229.21.112 port 29418: Broken pipe

                        A 1 Reply Last reply 16 Sept 2018, 15:38
                        0
                        • Y ylink
                          16 Sept 2018, 15:18

                          @aha_1980 Record:
                          OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n 7 Dec 2017
                          debug1: Reading configuration data /home/ylink/.ssh/config
                          debug1: /home/ylink/.ssh/config line 1: Applying options for *
                          debug1: Reading configuration data /etc/ssh/ssh_config
                          debug1: /etc/ssh/ssh_config line 19: Applying options for *
                          debug2: resolving "codereview.qt-project.org" port 29418
                          debug2: ssh_connect_direct: needpriv 0
                          debug1: Connecting to codereview.qt-project.org [54.229.21.112] port 29418.
                          debug1: Connection established.
                          debug1: identity file /home/ylink/.ssh/id_rsa type 0
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_rsa-cert type -1
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_dsa type -1
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_dsa-cert type -1
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_ecdsa type -1
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_ecdsa-cert type -1
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_ed25519 type -1
                          debug1: key_load_public: No such file or directory
                          debug1: identity file /home/ylink/.ssh/id_ed25519-cert type -1
                          debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4
                          debug1: Remote protocol version 2.0, remote software version GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                          debug1: no match: GerritCodeReview_2.7-119-gc49a54f (SSHD-CORE-0.9.0.201311081)
                          debug2: fd 3 setting O_NONBLOCK
                          debug1: Authenticating to codereview.qt-project.org:29418 as 'ylink'
                          debug3: put_host_port: [codereview.qt-project.org]:29418
                          debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                          debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                          debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                          debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
                          debug3: send packet: type 20
                          debug1: SSH2_MSG_KEXINIT sent
                          debug3: receive packet: type 20
                          debug1: SSH2_MSG_KEXINIT received
                          debug2: local client KEXINIT proposal
                          debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
                          debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
                          debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
                          debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
                          debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                          debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
                          debug2: compression ctos: none,zlib@openssh.com,zlib
                          debug2: compression stoc: none,zlib@openssh.com,zlib
                          debug2: languages ctos:
                          debug2: languages stoc:
                          debug2: first_kex_follows 0
                          debug2: reserved 0
                          debug2: peer server KEXINIT proposal
                          debug2: KEX algorithms: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
                          debug2: host key algorithms: ssh-rsa
                          debug2: ciphers ctos: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                          debug2: ciphers stoc: aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc
                          debug2: MACs ctos: hmac-sha1
                          debug2: MACs stoc: hmac-sha1
                          debug2: compression ctos: none
                          debug2: compression stoc: none
                          debug2: languages ctos:
                          debug2: languages stoc:
                          debug2: first_kex_follows 0
                          debug2: reserved 0
                          debug1: kex: algorithm: diffie-hellman-group14-sha1
                          debug1: kex: host key algorithm: ssh-rsa
                          debug1: kex: server->client cipher: aes128-cbc MAC: hmac-sha1 compression: none
                          debug1: kex: client->server cipher: aes128-cbc MAC: hmac-sha1 compression: none
                          debug1: sending SSH2_MSG_KEXDH_INIT
                          debug2: bits set: 1046/2048
                          debug3: send packet: type 30
                          debug1: expecting SSH2_MSG_KEXDH_REPLY
                          debug3: receive packet: type 31
                          debug1: Server host key: ssh-rsa SHA256:gA0QQVa8K2cbFAra8zmwyXX3yAPyB4lhMZxxafpcXUM
                          debug3: put_host_port: [54.229.21.112]:29418
                          debug3: put_host_port: [codereview.qt-project.org]:29418
                          debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                          debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:1
                          debug3: load_hostkeys: loaded 1 keys from [codereview.qt-project.org]:29418
                          debug3: hostkeys_foreach: reading file "/home/ylink/.ssh/known_hosts"
                          debug3: record_hostkey: found key type RSA in file /home/ylink/.ssh/known_hosts:2
                          debug3: load_hostkeys: loaded 1 keys from [54.229.21.112]:29418
                          debug1: Host '[codereview.qt-project.org]:29418' is known and matches the RSA host key.
                          debug1: Found key in /home/ylink/.ssh/known_hosts:1
                          debug2: bits set: 1032/2048
                          debug3: send packet: type 21
                          debug2: set_newkeys: mode 1
                          debug1: rekey after 4294967296 blocks
                          debug1: SSH2_MSG_NEWKEYS sent
                          debug1: expecting SSH2_MSG_NEWKEYS
                          debug3: receive packet: type 21
                          debug1: SSH2_MSG_NEWKEYS received
                          debug2: set_newkeys: mode 0
                          debug1: rekey after 4294967296 blocks
                          debug2: key: /home/ylink/.ssh/id_rsa (0x556f009aed30), agent
                          debug2: key: /home/ylink/.ssh/id_dsa ((nil))
                          debug2: key: /home/ylink/.ssh/id_ecdsa ((nil))
                          debug2: key: /home/ylink/.ssh/id_ed25519 ((nil))
                          debug3: send packet: type 5
                          debug3: receive packet: type 6
                          debug2: service_accept: ssh-userauth
                          debug1: SSH2_MSG_SERVICE_ACCEPT received
                          debug3: send packet: type 50
                          debug3: receive packet: type 51
                          debug1: Authentications that can continue: publickey
                          debug3: start over, passed a different list publickey
                          debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
                          debug3: authmethod_lookup publickey
                          debug3: remaining preferred: keyboard-interactive,password
                          debug3: authmethod_is_enabled publickey
                          debug1: Next authentication method: publickey
                          debug1: Offering public key: RSA SHA256:XmzlIjY+O/WVFdSsAPGl4UW3jL6MiiLvtf2F3vjUqfg /home/ylink/.ssh/id_rsa
                          debug3: send_pubkey_test
                          debug3: send packet: type 50
                          debug2: we sent a publickey packet, wait for reply
                          debug3: receive packet: type 60
                          debug1: Server accepts key: pkalg ssh-rsa blen 535
                          debug2: input_userauth_pk_ok: fp SHA256:XmzlIjY+O/WVFdSsAPGl4UW3jL6MiiLvtf2F3vjUqfg
                          debug3: sign_and_send_pubkey: RSA SHA256:XmzlIjY+O/WVFdSsAPGl4UW3jL6MiiLvtf2F3vjUqfg
                          debug3: send packet: type 50
                          debug3: receive packet: type 52
                          debug1: Authentication succeeded (publickey).
                          Authenticated to codereview.qt-project.org ([54.229.21.112]:29418).
                          debug1: channel 0: new [client-session]
                          debug3: ssh_session2_open: channel_new: 0
                          debug2: channel 0: send open
                          debug3: send packet: type 90
                          debug1: Entering interactive session.
                          debug1: pledge: network
                          debug3: receive packet: type 91
                          debug2: channel_input_open_confirmation: channel 0: callback start
                          debug2: fd 3 setting TCP_NODELAY
                          debug3: ssh_packet_set_tos: set IP_TOS 0x10
                          debug2: client_session2_setup: id 0
                          debug2: channel 0: request pty-req confirm 1
                          debug3: send packet: type 98
                          debug1: Sending environment.
                          debug3: Ignored env CLUTTER_IM_MODULE
                          debug3: Ignored env LS_COLORS
                          debug1: Sending env LC_MEASUREMENT = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env LESSCLOSE
                          debug1: Sending env LC_PAPER = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug1: Sending env LC_MONETARY = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env XDG_MENU_PREFIX
                          debug1: Sending env LANG = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env DISPLAY
                          debug3: Ignored env GNOME_SHELL_SESSION_MODE
                          debug3: Ignored env C_INCLUDE_PATH
                          debug3: Ignored env COLORTERM
                          debug3: Ignored env USERNAME
                          debug3: Ignored env XDG_VTNR
                          debug3: Ignored env SSH_AUTH_SOCK
                          debug3: Ignored env MANDATORY_PATH
                          debug1: Sending env LC_NAME = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env XDG_SESSION_ID
                          debug3: Ignored env USER
                          debug3: Ignored env DESKTOP_SESSION
                          debug3: Ignored env QT4_IM_MODULE
                          debug3: Ignored env TEXTDOMAINDIR
                          debug3: Ignored env GNOME_TERMINAL_SCREEN
                          debug3: Ignored env DEFAULTS_PATH
                          debug3: Ignored env PWD
                          debug3: Ignored env HOME
                          debug3: Ignored env TEXTDOMAIN
                          debug3: Ignored env SSH_AGENT_PID
                          debug3: Ignored env QT_ACCESSIBILITY
                          debug3: Ignored env XDG_SESSION_TYPE
                          debug3: Ignored env XDG_DATA_DIRS
                          debug3: Ignored env XDG_SESSION_DESKTOP
                          debug1: Sending env LC_ADDRESS = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env LIBRARY_PATH
                          debug1: Sending env LC_NUMERIC = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env GTK_MODULES
                          debug3: Ignored env PAPERSIZE
                          debug3: Ignored env WINDOWPATH
                          debug3: Ignored env TERM
                          debug3: Ignored env VTE_VERSION
                          debug3: Ignored env SHELL
                          debug3: Ignored env QT_IM_MODULE
                          debug3: Ignored env XMODIFIERS
                          debug3: Ignored env IM_CONFIG_PHASE
                          debug3: Ignored env XDG_CURRENT_DESKTOP
                          debug3: Ignored env GPG_AGENT_INFO
                          debug3: Ignored env GNOME_TERMINAL_SERVICE
                          debug3: Ignored env SHLVL
                          debug3: Ignored env XDG_SEAT
                          debug3: Ignored env LANGUAGE
                          debug1: Sending env LC_TELEPHONE = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env GDMSESSION
                          debug3: Ignored env GNOME_DESKTOP_SESSION_ID
                          debug3: Ignored env LOGNAME
                          debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
                          debug3: Ignored env XDG_RUNTIME_DIR
                          debug3: Ignored env XAUTHORITY
                          debug3: Ignored env CPLUS_INCLUDE_PATH
                          debug3: Ignored env XDG_CONFIG_DIRS
                          debug3: Ignored env PATH
                          debug1: Sending env LC_IDENTIFICATION = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env SESSION_MANAGER
                          debug3: Ignored env LESSOPEN
                          debug3: Ignored env GTK_IM_MODULE
                          debug1: Sending env LC_TIME = zh_CN.UTF-8
                          debug2: channel 0: request env confirm 0
                          debug3: send packet: type 98
                          debug3: Ignored env _
                          debug2: channel 0: request shell confirm 1
                          debug3: send packet: type 98
                          debug2: channel_input_open_confirmation: channel 0: callback done
                          debug2: channel 0: open confirm rwindow 2097152 rmax 32768
                          debug3: send packet: type 1
                          packet_write_wait: Connection to 54.229.21.112 port 29418: Broken pipe

                          A Offline
                          A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on 16 Sept 2018, 15:38 last edited by
                          #12

                          @ylink

                          Is it correct that the SSH version changed between the two logs?!

                          I currently have no idea for the broken pipe error - please google around a bit.

                          Can you ssh to other servers?

                          In the worst case, you can use Gerrit with HTTP also, the HTTP password is in your personal settings in Gerrit.

                          Qt has to stay free or it will die.

                          Y 1 Reply Last reply 16 Sept 2018, 15:47
                          0
                          • A aha_1980
                            16 Sept 2018, 15:38

                            @ylink

                            Is it correct that the SSH version changed between the two logs?!

                            I currently have no idea for the broken pipe error - please google around a bit.

                            Can you ssh to other servers?

                            In the worst case, you can use Gerrit with HTTP also, the HTTP password is in your personal settings in Gerrit.

                            Y Offline
                            Y Offline
                            ylink
                            wrote on 16 Sept 2018, 15:47 last edited by
                            #13

                            @aha_1980 The second log is from my ubuntu OS while the first is from windows bash. Still thanks for your help.

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              DungeonLords
                              wrote on 13 Jan 2023, 12:41 last edited by DungeonLords
                              #14

                              My steps:

                              cd /home/user8937666/QtProj/key/
                              ssh-keygen -t ed25519 -f /home/user8937666/QtProj/key/my_qt_ssh_key -N "" -C myKeyForQt <<< $'\ny' >/dev/null 2>&1
                              ssh -vvv -p 29418 user8937666@codereview.qt-project.org  -i /home/a/QtProj/key/my_qt_ssh_key
                              

                              Now works (thanks). But with default RSA (without -t ed25519 ) it doesn't work (error "no mutual signature algorithm"), why?

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved