git - Issue with cloning repo from gitlab (fatal: The remote end hung up unexpectedly) -


when making:

sudo git clone git@gitlab.mydomain.com:ws.git 

i error:

> sudo git clone git@gitlab.mydomain.com:root/ws.git password: cloning 'ws'… authenticity of host 'gitlab.mydomain.com (x.x.x.x)' can't established. rsa key fingerprint xx:xx:xx…xx:xx. sure want continue connecting (yes/no)? yes warning: permanently added 'gitlab.mydomain.com,x.x.x.x' (rsa) list of known hosts. git@gitlab.mydomain.com's password:  permission denied, please try again. git@gitlab.mydomain.com's password:  fatal: 'root/ws.git' not appear git repository fatal: remote end hung unexpectedly 

even if change url:

> sudo git clone git@gitlab.mydomain.com:ws.git password: cloning 'ws'… git@gitlab.mydomain.com's password:  fatal: 'ws.git' not appear git repository fatal: remote end hung unexpectedly 

what problem?

is problem public cloning? can clone adding personal ssh key?

update:

added personal ssh-key:

now:

ssh -tvvv root@gitlab.mydomain.com openssh_5.6p1, openssl 0.9.8x 10 may 2012 debug1: reading configuration data /users/user/.ssh/config debug1: applying options gitlab.mydomain.com debug1: reading configuration data /etc/ssh_config debug1: applying options * debug2: ssh_connect: needpriv 0 debug1: connecting gitlab.mydomain.com[x.x.x.x] port 22. debug1: connection established. debug3: not rsa1 key file /users/user/.ssh/root_gitlab.mydomain.com. debug2: key_type_from_name: unknown key type '-----begin' debug3: key_read: missing keytype debug2: key_type_from_name: unknown key type 'proc-type:' debug3: key_read: missing keytype debug2: key_type_from_name: unknown key type 'dek-info:' debug3: key_read: missing keytype debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug2: key_type_from_name: unknown key type '-----end' debug3: key_read: missing keytype debug1: identity file /users/user/.ssh/root_gitlab.mydomain.com.de type 1 debug1: identity file /users/user/.ssh/root_gitlab.mydomain.com-cert type -1 debug1: remote protocol version 2.0, remote software version openssh_6.0p1 debian-4 debug1: match: openssh_6.0p1 debian-4 pat openssh* debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_5.6 debug2: fd 3 setting o_nonblock debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug2: kex_parse_kexinit: 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-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,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-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,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: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,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-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: none,zlib@openssh.com 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: found hmac-md5 debug1: kex: server->client aes128-ctr hmac-md5 none debug2: mac_setup: found hmac-md5 debug1: kex: client->server aes128-ctr hmac-md5 none debug1: ssh2_msg_kex_dh_gex_request(1024<1024<8192) sent debug1: expecting ssh2_msg_kex_dh_gex_group debug2: dh_gen_key: priv key bits set: 119/256 debug2: bits set: 499/1024 debug1: ssh2_msg_kex_dh_gex_init sent debug1: expecting ssh2_msg_kex_dh_gex_reply debug3: check_host_in_hostfile: host gitlab.mydomain.com filename /users/user/.ssh/known_hosts debug3: check_host_in_hostfile: host gitlab.mydomain.com filename /users/user/.ssh/known_hosts debug3: check_host_in_hostfile: match line 43 debug3: check_host_in_hostfile: host x.x.x.x filename /users/user/.ssh/known_hosts debug3: check_host_in_hostfile: host x.x.x.x filename /users/user/.ssh/known_hosts debug3: check_host_in_hostfile: match line 38 debug1: host 'gitlab.mydomain.com' known , matches rsa host key. debug1: found key in /users/user/.ssh/known_hosts:43 debug2: bits set: 511/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 server debug1: ssh2_msg_service_request sent debug2: service_accept: ssh-userauth debug1: ssh2_msg_service_accept received debug2: key: /users/user/.ssh/id_rsa (0x105725350) debug2: key: /users/user/.ssh/root_gitlab.mydomain.com (0x105724510) debug1: authentications can continue: publickey,password debug3: start over, passed different list publickey,password 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: /users/user/.ssh/id_rsa debug3: send_pubkey_test debug2: sent publickey packet, wait reply debug1: authentications can continue: publickey,password debug1: offering rsa public key: /users/user/.ssh/root_gitlab.mydomain.com debug3: send_pubkey_test debug2: sent publickey packet, wait reply debug1: authentications can continue: publickey,password debug2: did not send packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password debug3: authmethod_is_enabled password debug1: next authentication method: password root@gitlab.mydomain.com's password: 

what problem?

update2:

this [ ssh key asks password ] doesn't work

update3:

> sudo git clone --verbose git@gitlab.mydomain.com:ws.git cloning 'ws'... fatal: remote end hung unexpectedly 

found solution here gitlabhq issue on github:

look in puma or unicorn server config:

sudo nano /home/git/gitlab/config/puma.rb

read there url binded (interesting port - in case 9292// changed binding variant unix pipe http://0.0.0.0:9292 time ago)

change config.yml in gitlab-shell appropriate:

sudo nano /home/git/gitlab-shell/config.yml

restart gitlab service:

sudo service gitlab restart

(i don't know, restarted apache well: sudo service apache2 restart)

done:

now, copy url project page , do:

git clone your-gitlab-url


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -