Sunday, 15 February 2015

Bitbucket :Git on Cygwin - Cannot push to remote repository -



Bitbucket :Git on Cygwin - Cannot push to remote repository -

updatedx3 (see below) using git bitbucket repo months until 11/29/12. did not seek , create commit until other day (01/24/13) no avail. reinstalled ssh server in cygwin assured had proper connection. able access server workstation, okay. able clone repo no issue bitbucket using ssh tunnel. however, when tried force changes (after adding, committing, etc.) following:

$ git force origin master come in passphrase key '/home/[user]/.ssh/id_rsa': conq: invalid command syntax. fatal: remote end hung unexpectedly

i have searched forums, faqs, etc. no avail. here output ssh:

$ ssh -t git@bitbucket.org come in passphrase key '/home/[user]/.ssh/id_rsa': conq: logged in [username].

you can utilize git or hg connect bitbucket. shell access disabled.

and also, ssh -v:

$ ssh -v openssh_5.8p1, openssl 0.9.8r 8 feb 2011 usage: ssh [-1246aacfgkkmnnqsttvvxxyy] [-b bind_address] [-c cipher_spec] [-d [bind_address:]port] [-e escape_char] [-f configfile] [-i pkcs11] [-i identity_file] [-l [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-o ctl_cmd] [-o option] [-p port] [-r [bind_address:]port:host:hostport] [-s ctl_path] [-w host:port] [-w local_tun[:remote_tun]] [user@]hostname [command]

and git --version:

$ git --version git version 1.7.5.1

as said, ssh seems working, looks else.

--update-- here output ssh -v -t git@bitbucket.org

$ ssh -v -t git@bitbucket.org openssh_5.8p1, openssl 0.9.8r 8 feb 2011 debug1: reading configuration info /etc/ssh_config debug1: connecting bitbucket.org [207.223.240.181] port 22. debug1: connection established. debug1: identity file /home/[user]/.ssh/id_rsa type 1 debug1: identity file /home/[user]/.ssh/id_rsa-cert type -1 debug1: identity file /home/[user]/.ssh/id_dsa type -1 debug1: identity file /home/[user]/.ssh/id_dsa-cert type -1 debug1: identity file /home/[user]/.ssh/id_ecdsa type -1 debug1: identity file /home/[user]/.ssh/id_ecdsa-cert 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 protocol 2.0 debug1: local version string ssh-2.0-openssh_5.8 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/[user]/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature right 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:[username] 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> come in passphrase key '/home/[user]/.ssh/id_rsa': debug1: read pem private key done: type rsa debug1: remote: forced command: conq username:[username] 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 ([207.223.240.181]:22). debug1: channel 0: new [client-session] debug1: requesting no-more-sessions@openssh.com debug1: entering interactive session. conq: logged in [username]. can utilize git or hg connect bitbucket. shell access disabled. 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 debug1: channel 0: free: client-session, nchannels 1 transferred: sent 2576, received 2984 bytes, in 0.3 seconds bytes per second: sent 7759.0, received 8988.0 debug1: exit status 0

update (02/17/13): searched through back upwards page on bitbucket's site, detail how set bitbucket gitbash on windows , not cygwin. saw others had had same problem on faq, referred atlassian support.

i started speaking straight atlassian back upwards , guy told me check post on stack overflow (git ssh on windows). solution posted did not work, back upwards rep instructed me install gitbash see if there other problem besides cygwin. installed gitbash , able working , force , clone 1 time again using ssh or https. told rep , said far help since issue own software. believe have narrowed problem mechanism within cygwin not seem ssh related, perhaps git.

update (02/18/13): today, confirmed able pull cygwin. now, have issue push. considering mapping alias mysysgit within of cygwin in errors cloning git project using cygwin, msysgit bash shell works , may take more time have seek right now. still looking solution git working natively in cygwin.

update (02/20/13): have exact same error pushing gitbash. see garbage @ back upwards page: https://bitbucket.org/site/master/issue/4406/invalid-command-synthax

it seems recurring problem back upwards not straight address. looks of it, has been going on since june of 2012 no published resolution. if reads , can give me direction, appreciate it. now, have switched gitbash using https.

please check {project_folder}/.git/config file. if have remote repository url ssh://. remove , seek force operation.

git force -u origin --all

valid remote repository url

url = git@bitbucket.org:{username}/{project-name}.git

git cygwin bitbucket git-push

No comments:

Post a Comment