gitlab6.2 ssh fail
Created by: zibuyule
hello,i meet a question. on my gitlab server: [root@server2 gitlab]# bundle exec rake gitlab:env:info RAILS_ENV=production
System information System: CentOS 6.3 Current User: root Using RVM: no Ruby Version: 2.0.0p350 Gem Version: 2.0.14 Bundler Version:1.3.5 Rake Version: 10.1.0
GitLab information Version: 6.2.4 Revision: ab6b1f28 Directory: /home/git/gitlab DB Adapter: mysql2 URL: http://192.168.0.138 HTTP Clone URL: http://192.168.0.138/some-project.git SSH Clone URL: [email protected]:some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 1.7.0 Repositories: /home/git/repositories/ Hooks: /home/git/gitlab-shell/hooks/ Git: /usr/local/bin/git
[root@server2 gitlab]# ls -ld /home/git/.ssh/ drwx------. 2 git git 4096 Nov 21 12:07 /home/git/.ssh/ [root@server2 gitlab]# cat /home/git/.ssh/authorized_keys command="/home/git/gitlab-shell/bin/gitlab-shell key-2",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5M1C+W2fr0UZ+6CBh52lFyISfm0gkdqrNjq9wnqArJ7+2cRg/1/86Wb35/U8K7XTMg/c8aMMT40JIu8o21skPPWr3L3g5LbWVOZLsmmfFIDjnvMeMLS+PSoaqmiujR++3d9tsy3ybDESdynWLon27lazFKfuvc0AcNDNmn+Dwb2iglLXpf6QKAUlT2Yb4pUZmGfS7HEs5S7v2uOydal1CXr1XC1SoDY/S+0p5lw87IPN3k/vA7daBgMwPdrhC7PVGoBnmVwTULqNOQMVUbjM78x+2KTpWGbT4DnWAleYubZDTW2A1J7KN1PxoN0UsI6wmjpoGP8UEwLoo0JCSZHZ6w== [email protected]
and on my client : [root@server3 ~]# ls /root/.ssh/ id_rsa id_rsa.pub known_hosts [root@server3 ~]# cat /root/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5M1C+W2fr0UZ+6CBh52lFyISfm0gkdqrNjq9wnqArJ7+2cRg/1/86Wb35/U8K7XTMg/c8aMMT40JIu8o21skPPWr3L3g5LbWVOZLsmmfFIDjnvMeMLS+PSoaqmiujR++3d9tsy3ybDESdynWLon27lazFKfuvc0AcNDNmn+Dwb2iglLXpf6QKAUlT2Yb4pUZmGfS7HEs5S7v2uOydal1CXr1XC1SoDY/S+0p5lw87IPN3k/vA7daBgMwPdrhC7PVGoBnmVwTULqNOQMVUbjM78x+2KTpWGbT4DnWAleYubZDTW2A1J7KN1PxoN0UsI6wmjpoGP8UEwLoo0JCSZHZ6w== [email protected] [root@server3 ~]# git clone [email protected]:yuwei/show.git Cloning into 'show'... Access denied. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. [root@server3 ~]# ssh [email protected] PTY allocation request failed on channel 0 Welcome to GitLab, Anonymous! Connection to 192.168.0.138 closed.
why can't i git clone with ssh ?please tell me.thanks!