git - ssh asks for password even though I have my keys generated -


i'm working git repositories in gitlab server inside company. today installed opensuse on machine , when tried clone repos through ssh, gitlab kept asking me password did not have. before opensuse had ubuntu , worked fine.

i have generated keys , updated public 1 gitlab server (which have no access to).

i tried using gitlab password , nothing but:

permission denied, please try again

and on third try get:

permission denied (publickey,password). fatal: not read remote repository.

please make sure have correct access rights , repository exists.

this open ssh version:

openssh_6.6.1p1, openssl 1.0.1k-fips 8 jan 2015

my suse version:

opensuse 13.2 (harlequin) (x86_64) 64-bit

and trace sshing gitlab:

openssh_6.6.1, openssl 1.0.1k-fips 8 jan 2015 debug1: reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: applying options * debug2: ssh_connect: needpriv 0 debug1: connecting gitlab.enterprise.it [10.254.150.182] port 22. debug1: connection established. debug3: incorrect rsa1 identifier debug3: not load "/home/facundo/.ssh/id_rsa" rsa1 public key debug1: identity file /home/facundo/.ssh/id_rsa type 1 debug1: identity file /home/facundo/.ssh/id_rsa-cert type -1 debug1: identity file /home/facundo/.ssh/id_dsa type -1 debug1: identity file /home/facundo/.ssh/id_dsa-cert type -1 debug1: identity file /home/facundo/.ssh/id_ecdsa type -1 debug1: identity file /home/facundo/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/facundo/.ssh/id_ed25519 type -1 debug1: identity file /home/facundo/.ssh/id_ed25519-cert type -1 debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_6.6.1 debug1: remote protocol version 2.0, remote software version openssh_6.6.1p1 ubuntu-2ubuntu2 debug1: match: openssh_6.6.1p1 ubuntu-2ubuntu2 pat openssh_6.6.1* compat 0x04000000 debug2: fd 3 setting o_nonblock debug3: load_hostkeys: loading entries host "gitlab.enterprise.it" file "/home/facundo/.ssh/known_hosts" debug3: load_hostkeys: found key type ecdsa in file /home/facundo/.ssh/known_hosts:1 debug3: load_hostkeys: loaded 1 keys debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug2: kex_parse_kexinit: 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,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,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-ed25519,ssh-rsa,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: 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,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 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 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: setup hmac-md5-etm@openssh.com debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none debug2: mac_setup: setup hmac-md5-etm@openssh.com debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none debug1: sending ssh2_msg_kex_ecdh_init debug1: expecting ssh2_msg_kex_ecdh_reply debug1: server host key: ecdsa f3:57:5c:28:52:8c:de:0a:58:6e:34:be:bf:72:90:e4 [md5] debug3: load_hostkeys: loading entries host "gitlab.enterprise.it" file "/home/facundo/.ssh/known_hosts" debug3: load_hostkeys: found key type ecdsa in file /home/facundo/.ssh/known_hosts:1 debug3: load_hostkeys: loaded 1 keys debug3: load_hostkeys: loading entries host "10.254.150.182" file "/home/facundo/.ssh/known_hosts" debug3: load_hostkeys: found key type ecdsa in file /home/facundo/.ssh/known_hosts:1 debug3: load_hostkeys: loaded 1 keys debug1: host 'gitlab.enterprise.it' known , matches ecdsa host key. debug1: found key in /home/facundo/.ssh/known_hosts:1 debug1: ssh_ecdsa_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: /home/facundo/.ssh/id_rsa (0x7f6873bd97a0), debug2: key: /home/facundo/.ssh/id_dsa ((nil)), debug2: key: /home/facundo/.ssh/id_ecdsa ((nil)), debug2: key: /home/facundo/.ssh/id_ed25519 ((nil)), debug1: authentications can continue: publickey,password debug3: start over, passed 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/facundo/.ssh/id_rsa debug3: send_pubkey_test debug2: sent publickey packet, wait reply debug1: authentications can continue: publickey,password debug1: trying private key: /home/facundo/.ssh/id_dsa debug3: no such identity: /home/facundo/.ssh/id_dsa: no such file or directory debug1: trying private key: /home/facundo/.ssh/id_ecdsa debug3: no such identity: /home/facundo/.ssh/id_ecdsa: no such file or directory debug1: trying private key: /home/facundo/.ssh/id_ed25519 debug3: no such identity: /home/facundo/.ssh/id_ed25519: no such file or directory 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 git@gitlab.enterprise.it's password: 

i have googled lot yet did not find solution problem. know happening?


i updated ssh connection trace gitlab told attempting connect 2 possible keys, there should 1 rsa key.

i tried cloning bitbucket repository , succeded. succeded @ connecting other computer through ssh i'm shure ssh not issue here, right?

also, compared other computer's ssh trace gitlab (that can connect it) , start differ in these final lines:

succesful computer:

[...] 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: /home/username/.ssh/id_rsa debug3: send_pubkey_test debug2: sent publickey packet, wait reply debug1: server accepts key: pkalg ssh-rsa blen 279 debug2: input_userauth_pk_ok: fp f4:73:b3:7d:49:0d:4d:2b:a3:42:32:6c:49:c7:cf:e9 debug3: sign_and_send_pubkey: rsa f4:73:b3:7d:49:0d:4d:2b:a3:42:32:6c:49:c7:cf:e9 debug1: key_parse_private2: missing begin marker debug1: read pem private key done: type rsa debug1: authentication succeeded (publickey). authenticated gitlab.enterprise.it ([10.254.150.182]:22). debug2: fd 5 setting o_nonblock debug1: channel 0: new [client-session] [...] 

my computer:

[...] debug1: authentications can continue: publickey,password debug3: start over, passed 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/facundo/.ssh/id_rsa debug3: send_pubkey_test debug2: sent publickey packet, wait reply debug1: authentications can continue: publickey,password debug1: trying private key: /home/facundo/.ssh/id_dsa debug3: no such identity: /home/facundo/.ssh/id_dsa: no such file or directory debug1: trying private key: /home/facundo/.ssh/id_ecdsa debug3: no such identity: /home/facundo/.ssh/id_ecdsa: no such file or directory debug1: trying private key: /home/facundo/.ssh/id_ed25519 debug3: no such identity: /home/facundo/.ssh/id_ed25519: no such file or directory 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 git@gitlab.enterprise.it's password: 

thanks reply guys, problem solved asking gitlab's administrator reset servers wasn't 1 having problem.


Popular posts from this blog