Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] SSH connection hangs on rekeying

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
mvlabat
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 19, 2014 11:26 am

[SOLVED] SSH connection hangs on rekeying

  • Quote

Post by mvlabat » Thu Nov 27, 2014 5:44 pm

Hope I've posted my question to the right place.

I try to clone my drupal.org repository. Typing

Code: Select all

git clone --branch master mvlabat@git.drupal.org:project/userpoints_votingapi.git
just hangs. After accepting my password there is no output anymore, so the only way is to press "CTRL+C"

If I try to use

Code: Select all

git clone --branch master git://git.drupal.org:project/userpoints_votingapi.git
I receive

Code: Select all

fatal: Unable to look up git.drupal.org (port project) (Servname not supported for ai_socktype)
I've checked my /etc/services so there are

Code: Select all

ntp             123/tcp                         # Network Time Protocol
ntp             123/udp
in the file.

Why cloning from the repository still doesn't work?

Thank you
Last edited by mvlabat on Mon Dec 01, 2014 2:40 pm, edited 2 times in total.
Top
quilosaq
Veteran
Veteran
Posts: 1596
Joined: Tue Dec 22, 2009 5:07 pm

  • Quote

Post by quilosaq » Thu Nov 27, 2014 8:08 pm

Hi!

Verify you are typing right password.
Top
mvlabat
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 19, 2014 11:26 am

  • Quote

Post by mvlabat » Thu Nov 27, 2014 10:10 pm

Yes, I'm sure that the password is right. If I type a wrong password, it tells me about that. For example, I can clone my repository using Windows Git Bash with no problem. So there is something wrong with my Git or Gentoo configuration.
Top
quilosaq
Veteran
Veteran
Posts: 1596
Joined: Tue Dec 22, 2009 5:07 pm

  • Quote

Post by quilosaq » Thu Nov 27, 2014 11:24 pm

Try that:

Code: Select all

git clone --branch master http://git.drupal.org/project/userpoints_votingapi.git
EDIT:
or

Code: Select all

git clone --branch master git://git.drupal.org/project/userpoints_votingapi.git
Last edited by quilosaq on Fri Nov 28, 2014 12:04 am, edited 2 times in total.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Thu Nov 27, 2014 11:32 pm

Do you use ControlPersist in your ssh config at all? Sometimes that gets stuck, causing this kind of problem.

Your error message for the second command is because you're using a colon instead of a slash.
Top
mvlabat
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 19, 2014 11:26 am

  • Quote

Post by mvlabat » Fri Nov 28, 2014 11:40 am

Thank you! Using git:// with slash but not colon helped to clone the repository.
But what's wrong with the first command? How to actually know if I use ControlPersist? I didn't find my config file in either /home/mvlabat/.ssh/ directory or /root/.ssh/ . It seems to me that it doesn't even exists.
Top
mvlabat
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 19, 2014 11:26 am

  • Quote

Post by mvlabat » Fri Nov 28, 2014 12:13 pm

After using "ssh -vvvT" command:
ssh -vvvT mvlabat@git.drupal.org
OpenSSH_6.6, OpenSSL 1.0.1j 15 Oct 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to git.drupal.org [140.211.10.6] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/mvlabat/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/mvlabat/.ssh/id_rsa type 1
debug1: identity file /home/mvlabat/.ssh/id_rsa-cert type -1
debug1: identity file /home/mvlabat/.ssh/id_dsa type -1
debug1: identity file /home/mvlabat/.ssh/id_dsa-cert type -1
debug1: identity file /home/mvlabat/.ssh/id_ed25519 type -1
debug1: identity file /home/mvlabat/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6p1-hpn14v4
debug1: Remote protocol version 2.0, remote software version Twisted
debug1: no match: Twisted
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "git.drupal.org" from file "/home/mvlabat/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/mvlabat/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-ed25519,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa
debug2: kex_parse_kexinit: aes256-ctr,aes256-cbc,aes192-ctr,aes192-cbc,aes128-ctr,aes128-cbc,cast128-ctr,cast128-cbc,blowfish-ctr,blowfish-cbc,3des-ctr,3des-cbc
debug2: kex_parse_kexinit: aes256-ctr,aes256-cbc,aes192-ctr,aes192-cbc,aes128-ctr,aes128-cbc,cast128-ctr,cast128-cbc,blowfish-ctr,blowfish-cbc,3des-ctr,3des-cbc
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup hmac-md5
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: setup hmac-md5
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client->server aes128-ctr hmac-md5 none
debug2: bits set: 521/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA *I think I shouldn't post it :)*
debug3: load_hostkeys: loading entries for host "git.drupal.org" from file "/home/mvlabat/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/mvlabat/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "140.211.10.6" from file "/home/mvlabat/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/mvlabat/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'git.drupal.org' is known and matches the RSA host key.
debug1: Found key in /home/mvlabat/.ssh/known_hosts:4
debug2: bits set: 501/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/mvlabat/.ssh/id_rsa (0x7fec1dc9f580),
debug2: key: /home/mvlabat/.ssh/id_dsa ((nil)),
debug2: key: /home/mvlabat/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred 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/mvlabat/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp *I think I shouldn't post it :)*
debug3: sign_and_send_pubkey: RSA *I think I shouldn't post it :)*
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: Single to Multithread CTR cipher swap - client request
debug1: Authentication succeeded (publickey).
Authenticated to git.drupal.org ([140.211.10.6]:22).
debug1: Final hpn_buffer_size = 2097152
debug1: HPN Disabled: 0, HPN Buffer Size: 2097152
debug1: channel 0: new [client-session]
debug1: Enabled Dynamic Window Scaling
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: rekeying in progress
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x08
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug3: Ignored env MANPATH
debug3: Ignored env KDE_MULTIHEAD
debug3: Ignored env SHELL
debug3: Ignored env TERM
debug3: Ignored env XDG_SESSION_COOKIE
debug3: Ignored env GTK2_RC_FILES
debug3: Ignored env KONSOLE_DBUS_SERVICE
debug3: Ignored env KONSOLE_PROFILE_NAME
debug3: Ignored env GS_LIB
debug3: Ignored env GTK_RC_FILES
debug3: Ignored env HUSHLOGIN
debug3: Ignored env WINDOWID
debug3: Ignored env SHELL_SESSION_ID
debug3: Ignored env KDE_FULL_SESSION
debug3: Ignored env USER
debug3: Ignored env LS_COLORS
debug3: Ignored env PRELINK_PATH_MASK
debug3: Ignored env MULTIOSDIRS
debug3: Ignored env SESSION_MANAGER
debug3: Ignored env PAGER
debug3: Ignored env CONFIG_PROTECT_MASK
debug3: Ignored env XDG_CONFIG_DIRS
debug3: Ignored env MAIL
debug3: Ignored env PATH
debug3: Ignored env PWD
debug3: Ignored env JAVA_HOME
debug3: Ignored env JAVAC
debug3: Ignored env EDITOR
debug3: Ignored env KDE_SESSION_UID
debug1: Sending env LANG = en_US
debug2: channel 0: request env confirm 0
debug1: enqueue packet: 98
debug3: Ignored env GSETTINGS_BACKEND
debug3: Ignored env QT_GRAPHICSSYSTEM
debug3: Ignored env KONSOLE_DBUS_SESSION
debug3: Ignored env HOME
debug3: Ignored env COLORFGBG
debug3: Ignored env JDK_HOME
debug3: Ignored env SHLVL
debug3: Ignored env KDE_SESSION_VERSION
debug3: Ignored env LANGUAGE
debug3: Ignored env XCURSOR_THEME
debug3: Ignored env LESS
debug3: Ignored env LOGNAME
debug3: Ignored env GCC_SPECS
debug3: Ignored env XDG_DATA_DIRS
debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
debug3: Ignored env LESSOPEN
debug3: Ignored env INFOPATH
debug3: Ignored env WINDOWPATH
debug3: Ignored env PROFILEHOME
debug3: Ignored env DISPLAY
debug3: Ignored env QT_PLUGIN_PATH
debug3: Ignored env OPENGL_PROFILE
debug3: Ignored env XDG_CURRENT_DESKTOP
debug3: Ignored env CONFIG_PROTECT
debug3: Ignored env XAUTHORITY
debug3: Ignored env _
debug3: Ignored env OLDPWD
debug2: channel 0: request shell confirm 1
debug1: enqueue packet: 98
debug2: callback done
debug2: channel 0: open confirm rwindow 131072 rmax 32768
debug1: rekeying in progress
Here it hangs, on the last output string.
Top
mvlabat
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 19, 2014 11:26 am

  • Quote

Post by mvlabat » Sun Nov 30, 2014 8:32 am

Edited topic title. Up.
Top
mvlabat
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Sun Jan 19, 2014 11:26 am

  • Quote

Post by mvlabat » Mon Dec 01, 2014 2:40 pm

Solved with the solution in this article comment.

https://www.drupal.org/node/2110773#comment-8724705
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic