ssh - BitBucket - Git - Permission denied (publickey) -


first of all, know have read thoroughly 20+ posts on topic. however, still not working after 2 days, so... give , acknowledge cannot set ssh connection...

ok, painful enough. here did (at least 3 times) :

  1. i generate set of ssh keys command :

    ssh-keygen -t rsa 
  2. here permissions both .ssh folder , rsa keys :

    $ ls -al | grep .ssh drwx------  2 local local     4096 mars  28 11:17 .ssh  $ ls -al .ssh/ -rw-r--r--  1 local local  802 mars  11 17:11 authorized_keys -rw-r--r--  1 local local   61 mars  28 11:17 config -rw-------  1 local local 1675 mars  28 11:14 id_rsa -rw-------  1 local local  396 mars  28 11:14 id_rsa.pub -rw-------  1 local local 1326 mars  25 17:38 known_hosts 
  3. i copied content of id_rsa_.pub bitbucket account. sure done flawlessly, triple checked.

  4. i edited .ssh/config looks :

    $ cat .ssh/config  host bitbucket.org identityfile /home/local/.ssh/id_rsa.pub 
  5. and here output of ssh -v git@bitbucket.org :

    $ ssh -v git@bitbucket.org                                                                                                                                                                          openssh_6.0p1 debian-4+deb7u2, openssl 1.0.1e 11 feb 2013 debug1: reading configuration data /home/local/.ssh/config debug1: /home/local/.ssh/config line 1: applying options bitbucket.org debug1: reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: applying options * debug1: connecting bitbucket.org [131.103.20.168] port 22. debug1: connection established. debug1: identity file /home/local/.ssh/id_rsa.pub type 1 debug1: checking blacklist file /usr/share/ssh/blacklist.rsa-2048 debug1: checking blacklist file /etc/ssh/blacklist.rsa-2048 debug1: identity file /home/local/.ssh/id_rsa.pub-cert type -1 debug1: remote protocol version 2.0, remote software version openssh_5.3 debug1: match: openssh_5.3 pat openssh_5* debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_6.0p1 debian-4+deb7u2 debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug1: kex: server->client aes128-ctr hmac-md5 none 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 debug1: ssh2_msg_kex_dh_gex_init sent debug1: expecting ssh2_msg_kex_dh_gex_reply debug1: server host key: rsa 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40 debug1: host 'bitbucket.org' known , matches rsa host key. debug1: found key in /home/local/.ssh/known_hosts:3 debug1: ssh_rsa_verify: signature correct debug1: ssh2_msg_newkeys sent debug1: expecting ssh2_msg_newkeys debug1: ssh2_msg_newkeys received debug1: roaming not allowed server debug1: ssh2_msg_service_request sent debug1: ssh2_msg_service_accept received debug1: authentications can continue: publickey debug1: next authentication method: publickey debug1: offering rsa public key: /home/local/.ssh/id_rsa.pub debug1: remote: forced command: conq username:happy-dev debug1: remote: port forwarding disabled. debug1: remote: x11 forwarding disabled. debug1: remote: agent forwarding disabled. debug1: remote: pty allocation disabled. debug1: server accepts key: pkalg ssh-rsa blen 279 debug1: key_parse_private_pem: pem_read_privatekey failed debug1: read pem private key done: type <unknown> enter passphrase key '/home/local/.ssh/id_rsa.pub':  debug1: no more authentication methods try. permission denied (publickey). 

if have idea why still permission denied (publickey) message, please share me. in great despair :d

identityfile /home/local/.ssh/id_rsa.pub 

you're using public key file here. should use private key file instead. it's called id_rsa:

identityfile /home/local/.ssh/id_rsa 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -