[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Server woes - Bad packet length, corrupted MAC on input
[Thread Prev] | [Thread Next]
- Subject: Re: Server woes - Bad packet length, corrupted MAC on input
- From: "jeetu.golani@xxxxxxxxx" <jeetu.golani@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 3 Nov 2011 23:13:00 +0500
- To: libssh@xxxxxxxxxx
Hi Aris, Just wanted to check in if you've had a chance to try out the libssh server code I've sent and reproduce the errors I've been seeing? Thanks so much again for looking into this. Bye for now On Sat, Oct 22, 2011 at 2:20 PM, jeetu.golani@xxxxxxxxx <jeetu.golani@xxxxxxxxx> wrote: > Hi Aris, > > I'm attaching my proof of concept server code > as.....ebpsshd-singlesession.c has compile instructions at the > beginning of the code. You will also need to generate a key.h file > that holds the public key of the user who will be connecting to this > server - this is tempoarary since as of now I'm not reading this info > from an authorized_keys or something similar. > > Just create a key.h file in the same directory and put something like : > > #define MY_PUB_KEY "[YOUR PUBLIC KEY WITHIN THESE QUOTES]" > > Also as of now ebpsshd-singlesession listens in on port 2000. So ssh > should connect to that port. > > I also have a libssh-project-wrapper script that allows me to try this > out without needing to install the libssh i've built. It basically has > the content: > > #!/bin/sh > > export LD_LIBRARY_PATH=/home/jeetu/utils/libssh/libssh-project/build/src:/home/jeetu/utils/libssh/libssh-project/build/src/threads > ./$1 > > I have been testing this code with simple examples like xeyes and > xcalc. For some reason xcalc shows the problem much sooner than with > xeyes, maybe because of the volume of data being transmitted to and > fro? > > This is proof of concept code with a lot of fiddling with buffer sizes > as I have been trying to study if any of that makes an impact however > please point out any way you think this can be improved on :) > > I'm sorry to drop this in your lap especially if it turns out it was > some server side code issue, however I completely appreciate your help > on this. I would like to squash this bug regardless of where it lies > i.e. in my code or libssh, unfortunately my understanding of libssh > and the ssh protocol is a little limited. However I do not want to put > all of this load completely in your lap and if you share your thoughts > and there's something you would like me to look into then please let > me know. > > Thanks, > Jeetu > ebrain.in | Beehive Computing > Discover and run software from any device around you - an open source > (GPL) project. > > > On Fri, Oct 21, 2011 at 11:22 PM, jeetu.golani@xxxxxxxxx > <jeetu.golani@xxxxxxxxx> wrote: >> Hi Aris, >> >>> I think I'll need a proof-of-concept code to debug this. Would you mind >>> sharing your code, or it's not possible (too much integration with >>> existing code). >> >> No problem at all :) The code is an independent unit as of now since I >> wanted to make it work before I integrate it within my open source >> project (eBrainPool) >> >> I'll mail this out to you tomm (not on the machine with the code right now :) ) >> >> Thanks so much for looking into this.....truly appreciate it :) >> >> Bye for now >> >> >> On Fri, Oct 21, 2011 at 7:26 PM, Aris Adamantiadis <aris@xxxxxxxxxxxx> wrote: >>> Hi Jeetu, >>> >>> By seeing your logs, I understand this: >>> Both side have a hmac error. The openssh client sees it first, sends a >>> disconnect (that works), then there's the error in the libssh log. >>> >>> I think I'll need a proof-of-concept code to debug this. Would you mind >>> sharing your code, or it's not possible (too much integration with >>> existing code). >>> >>> If so, do you think I can reproduce the problem by "fixing" samplesshd >>> to make new X11 channels connection connect to the local X11 unix socket ? >>> >>> Thanks. >>> >>> Aris >>> >>> >>> Le 18/10/11 20:34, jeetu.golani@xxxxxxxxx a écrit : >>>>> This is not a problem and shouldn't cause invalid MAC errors. I'm on >>>>> travel so I'll look at the log when i'm back. >>>> >>>> Thanks so much Aris :) >>>> >>>> On Tue, Oct 18, 2011 at 5:52 PM, Aris Adamantiadis <aris@xxxxxxxxxxxx> wrote: >>>>> Hi, >>>>> >>>>> This is not a problem and shouldn't cause invalid MAC errors. I'm on >>>>> travel so I'll look at the log when i'm back. >>>>> >>>>> Aris >>>>> >>>>> Le 18/10/11 12:30, u@xxxxxxxxxxxxx a écrit : >>>>>> Hi all, >>>>>> >>>>>> debug3: Incorrect RSA1 identifier >>>>>> debug3: Could not load "/home/jeetu/.ssh/id_rsa" as a RSA1 public key >>>>>> debug2: key_type_from_name: unknown key type '-----BEGIN' >>>>>> >>>>>> >>>>>> On Tue, Oct 18, 2011 at 03:22:08PM +0500, jeetu.golani@xxxxxxxxx wrote: >>>>>>> Hi Aris, >>>>>>> >>>>>>> I've attached a log of the libssh server >>>>>>> (log-1-ebpsshd-singlesession-18102011.txt) and the OpenSSH client >>>>>>> (log-ssh-1-18102011.txt). >>>>>> >>>>>> Greetings >>>>>> -- >>>>>> Stefan Kuttler ==*== nc.netbeisser.de >>>>>> >>>>> >>>>> >>>> >>> >>> >> >
Re: Server woes - Bad packet length, corrupted MAC on input | Aris Adamantiadis <aris@xxxxxxxxxxxx> |