V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
chjwdzhr
V2EX  ›  问与答

gitlab 的 ssh 登录问题

  •  
  •   chjwdzhr · 2014-06-17 16:23:40 +08:00 · 9618 次点击
    这是一个创建于 3807 天前的主题,其中的信息可能已经有所发展或是发生改变。
    由于公司要使用gitlab,这个重任就落在了我的身上,但是搭建起来以后发现https可以提交代码,但是ssh的方式怎么都不好使,这是使用ssh测试的日志,请有经验的帮忙给看看啥问题。我对ssh不太了解
    Generating public/private rsa key pair.
    Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
    Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
    The key fingerprint is:
    cb:5d:e0:a4:38:78:58:b2:a1:68:24:32:5b:34:ac:cc [email protected]

    F:\workspace\eclipse3.7>ssh -v https://10.10.11.226:2443/mygroup/demogit.git
    OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
    ssh: https://10.10.11.226:2443/mygroup/demogit.git: no address associated with n
    ame

    F:\workspace\eclipse3.7>ssh -vvv [email protected]:mygroup/demogit.git
    OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 10.10.11.226:mygroup/demogit.git [10.10.11.226] port 22.
    debug1: Connection established.
    debug1: identity file /c/Users/Administrator/.ssh/identity type -1
    debug3: Not a RSA1 key file /c/Users/Administrator/.ssh/id_rsa.
    debug2: key_type_from_name: unknown key type '-----BEGIN'
    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 /c/Users/Administrator/.ssh/id_rsa type 1
    debug1: identity file /c/Users/Administrator/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
    debug1: match: OpenSSH_5.3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.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-g
    roup-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1
    28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[email protected],aes128-c
    tr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1
    28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[email protected],aes128-c
    tr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,[email protected],zlib
    debug2: kex_parse_kexinit: none,[email protected],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-group-exchange-sha256,diffie-hellman-g
    roup-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour12
    8,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rij
    [email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour12
    8,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rij
    [email protected]
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,
    hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96

    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,
    hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96

    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc 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: 132/256
    debug2: bits set: 540/1024
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug3: check_host_in_hostfile: filename /c/Users/Administrator/.ssh/known_hosts

    debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
    debug3: check_host_in_hostfile: filename /c/Users/Administrator/.ssh/known_hosts

    debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
    debug3: check_host_in_hostfile: filename /c/Users/Administrator/.ssh/known_hosts

    debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
    debug2: no key of type 0 for host 10.10.11.226:mygroup/demogit.git
    debug3: check_host_in_hostfile: filename /c/Users/Administrator/.ssh/known_hosts
    2
    debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2
    debug3: check_host_in_hostfile: filename /c/Users/Administrator/.ssh/known_hosts

    debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
    debug2: no key of type 2 for host 10.10.11.226:mygroup/demogit.git
    The authenticity of host '10.10.11.226:mygroup/demogit.git (10.10.11.226)' can't
    be established.
    RSA key fingerprint is fc:c3:08:47:f2:09:b0:06:e5:be:43:55:68:da:00:f4.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '10.10.11.226:mygroup/demogit.git,10.10.11.226' (RSA)
    to the list of known hosts.
    debug2: bits set: 504/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: SSH2_MSG_SERVICE_REQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug2: key: /c/Users/Administrator/.ssh/identity (0x0)
    debug2: key: /c/Users/Administrator/.ssh/id_rsa (0xa01b418)
    debug2: key: /c/Users/Administrator/.ssh/id_dsa (0x0)
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
    c,password
    debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-m
    ic,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: Trying private key: /c/Users/Administrator/.ssh/identity
    debug3: no such identity: /c/Users/Administrator/.ssh/identity
    debug1: Offering public key: /c/Users/Administrator/.ssh/id_rsa
    debug3: send_pubkey_test
    debug2: we sent a publickey packet, wait for reply
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
    c,password
    debug1: Trying private key: /c/Users/Administrator/.ssh/id_dsa
    debug3: no such identity: /c/Users/Administrator/.ssh/id_dsa
    debug2: we did not send a packet, disable method
    debug3: authmethod_lookup password
    debug3: remaining preferred: ,password
    debug3: authmethod_is_enabled password
    debug1: Next authentication method: password
    [email protected]:mygroup/demogit.git's password:
    debug3: packet_send2: adding 64 (len 48 padlen 16 extra_pad 64)
    debug2: we sent a password packet, wait for reply
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
    c,password
    Permission denied, please try again.
    [email protected]:mygroup/demogit.git's password:
    debug3: packet_send2: adding 64 (len 48 padlen 16 extra_pad 64)
    debug2: we sent a password packet, wait for reply
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
    c,password
    Permission denied, please try again.
    [email protected]:mygroup/demogit.git's password:
    debug3: packet_send2: adding 64 (len 48 padlen 16 extra_pad 64)
    debug2: we sent a password packet, wait for reply
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
    c,password
    debug2: we did not send a packet, disable method
    debug1: No more authentication methods to try.
    Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5856 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:34 · PVG 10:34 · LAX 18:34 · JFK 21:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.