ssh - 2 computers one git issue -


i have issue bitbucket in way if use computer work in order ssh on server , git pull perfect, if home computer, same server, :

repository access denied. deployment key not associated requested repository. fatal: not read remote repository.

please make sure have correct access rights , repository exists.

this super strange , don't know in case.

openssh_7.2p2 ubuntu-4ubuntu2.1, openssl 1.0.2g  1 mar 2016 debug1: reading configuration data /home/ubuntu/.ssh/config debug1: /home/ubuntu/.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 [104.192.143.1] port 22. debug1: connection established. debug1: identity file /home/ubuntu/.ssh/bitbucket type 1 debug1: key_load_public: no such file or directory debug1: identity file /home/ubuntu/.ssh/bitbucket-cert type -1 debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_7.2p2 ubuntu-4ubuntu2.1 debug1: remote protocol version 2.0, remote software version  conker_1.0.310-c404db1 app-153 debug1: no match: conker_1.0.310-c404db1 app-153 debug1: authenticating bitbucket.org:22 'git' debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ssh-rsa debug1: kex: server->client cipher: aes128-ctr mac: hmac-sha2-256-etm@openssh.com compression: none debug1: kex: client->server cipher: aes128-ctr mac: hmac-sha2-256-etm@openssh.com compression: none debug1: expecting ssh2_msg_kex_ecdh_reply debug1: server host key: ssh-rsa sha256:zzxqoxsrbeiutue8aikjykwbhaxvsc0ojez9yxagp1a debug1: host 'bitbucket.org' known , matches rsa host key. debug1: found key in /home/ubuntu/.ssh/known_hosts:1 debug1: rekey after 4294967296 blocks debug1: ssh2_msg_newkeys sent debug1: expecting ssh2_msg_newkeys debug1: rekey after 4294967296 blocks debug1: ssh2_msg_newkeys received debug1: ssh2_msg_service_accept received debug1: authentications can continue: publickey debug1: next authentication method: publickey debug1: offering rsa public key: xxx@xxx.xx debug1: server accepts key: pkalg ssh-rsa blen 279 debug1: authentication succeeded (publickey). authenticated bitbucket.org ([104.192.143.1]:22). debug1: channel 0: new [client-session] debug1: entering interactive session. debug1: pledge: network debug1: sending environment. debug1: sending env lc_paper = de_de.utf-8 debug1: sending env lc_address = de_de.utf-8 debug1: sending env lc_monetary = de_de.utf-8 debug1: sending env lc_numeric = de_de.utf-8 debug1: sending env lc_telephone = de_de.utf-8 debug1: sending env lc_identification = de_de.utf-8 debug1: sending env lang = en_us.utf-8 debug1: sending env lc_measurement = de_de.utf-8 debug1: sending env lc_time = de_de.utf-8 debug1: sending env lc_name = de_de.utf-8 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 authenticated via deploy key.  can use git or hg connect bitbucket. shell access disabled.  deploy key has read access following repositories:  xxx/xxx: production_server -- xxx@xxx.xx xxx/yyy: production_server -- xxx@xxx.xx debug1: channel 0: free: client-session, nchannels 1 transferred: sent 3184, received 2008 bytes, in 0.2 seconds bytes per second: sent 17457.1, received 11009.4 debug1: exit status 0 

somehow have impression @ home passing local ssh keys server or there mix of things anyway. have idea why having this? how can stop it? thank you

i added config file

identitiesonly yes

so ssh config file looks like:

host bitbucket.org  hostname bitbucket.org  identityfile ~/.ssh/bitbucket  identitiesonly yes 

to server , working now.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -