Connection Closed: Unexpected end of message

Asked by xaav

Yes, I have searched the answers for a solution, and yes I have already tried just about everything.

I was just using bzr from the cmd command line, but I had to switch over to cygwin, to avoid bug #81689.

So, I switched over to cygwin, and got bzr and ssh installed.

Then ran:

$ bzr launchpad-login geoffreyfishing

So far, so good.

$ bzr push lp:~geoffreyfishing/+junk/testbranch

Connection closed, unexpected end of message, blah blah

$ set BZR_SSH=ssh

$ bzr push lp:~geoffreyfishing/+junk/testbranch

Connection closed, unexpected end of message, blah blah

Not good.

So then I try

$ ssh <email address hidden>

No shells on this server.
Connection closed.

No problems with ssh, it's something with bzr.

Thanks in advance for any help.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
xaav
Solved:
Last query:
Last reply:
Revision history for this message
Martin Packman (gz) said :
#1

Firstly, unless the branch you are tracking is adding and removing symlinks all the time, you can probably just branch initially using cygwin then go back to using cmd as before.

In your example, I think you're just not setting the ssh client correctly.

    $ set BZR_SSH=ssh

    $ bzr push lp:~geoffreyfishing/+junk/testbranch

I doubt this is doing what you think it is. Try instead:

    $ BZR_SSH=ssh bzr push lp:~geoffreyfishing/+junk/testbranch

Or add the variable definition in ~/.bash_profile to save typing it every time.

Revision history for this message
xaav (xaav) said :
#2

The problem was my home directory was set incorrectly in my /etc/passwd file.

Changing the home directory to /cygdrive/c/Users/Blah fixed the problem.