Bitbucket - alternative ssh key connection not working -
i'm trying setup alternative ssh key bitbucket. i've followed document:
https://confluence.atlassian.com/pages/viewpage.action?pageid=271943168
my .ssh/config
host test hostname bitbucket.org identityfile ~/.ssh/id_rsa_alt however connection using "test" not work. debug output looks this:
when try debug:
[user@archkraken tmp3]$ ssh -tv git@test openssh_6.8p1, openssl 1.0.2a 19 mar 2015 debug1: reading configuration data /home/user/.ssh/config debug1: /home/user/.ssh/config line 1: applying options test debug1: reading configuration data /etc/ssh/ssh_config debug1: connecting bitbucket.org [131.103.20.167] port 22. debug1: connection established. debug1: identity file /home/user/.ssh/id_rsa_alt type 1 debug1: key_load_public: no such file or directory debug1: identity file /home/user/.ssh/id_rsa_alt-cert type -1 debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_6.8 debug1: remote protocol version 2.0, remote software version openssh_5.3 debug1: match: openssh_5.3 pat openssh_5* compat 0x0c000000 debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug1: kex: server->client aes128-ctr umac-64@openssh.com none debug1: kex: client->server aes128-ctr umac-64@openssh.com none debug1: ssh2_msg_kex_dh_gex_request(1024<3072<8192) sent debug1: got ssh2_msg_kex_dh_gex_group debug1: ssh2_msg_kex_dh_gex_init sent debug1: got ssh2_msg_kex_dh_gex_reply debug1: server host key: ssh-rsa sha256:zzxqoxsrbeiutue8aikjykwbhaxvsc0ojez9yxagp1a debug1: host 'bitbucket.org' known , matches rsa host key. debug1: found key in /home/user/.ssh/known_hosts:20 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/user/.ssh/id_rsa debug1: remote: forced command: conq username:otheruser 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: remote: forced command: conq username:otheruser debug1: remote: port forwarding disabled. debug1: remote: x11 forwarding disabled. debug1: remote: agent forwarding disabled. debug1: remote: pty allocation disabled. debug1: authentication succeeded (publickey). authenticated bitbucket.org ([131.103.20.167]:22). debug1: channel 0: new [client-session] debug1: requesting no-more-sessions@openssh.com debug1: entering interactive session. debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 logged in otheruser. can use git or hg connect bitbucket. shell access disabled. debug1: channel 0: free: client-session, nchannels 1 transferred: sent 3656, received 3400 bytes, in 0.1 seconds bytes per second: sent 28045.6, received 26081.8 debug1: exit status 0 i'm not sure why, appears connection established using wrong id (/home/user/.ssh/id_rsa) regardless of specified in identityfile in .ssh/config. suspect has with:
debug1: key_load_public: no such file or directory but i'm not sure why unable find it. see 2 files:
id_rsa_alt id_rsa_alt.pub i have similar setup github works.
i suspect has permission of id_rsa_alt key. try changing permission first executing command:
chmod 600 id_rsa_alt
Comments
Post a Comment