Hi Mohtashims,
I'm now sitting on my notebook and I checked the two different Debug-Outputs of the 2 ssh connections. I clearly see differences.
I assume, you have - as I suggested - to debug the server side. But from the client side, there are visible differences, which shed a little light on the situation.
General Hints
I'm watching you and your questions quite a while. Your technical knowledge is quite good. You have scripting skills. You know how to use the commands and build programs upon that. That's very good.
What I see too, is that you are quickly asking questions if you stumble upon errors like here. So I think a further good skill, which will bring you forward in your overall competence would be problem investigation and problem solving capability.
What do you need for that?
- Patience and willingness to deeply and carefully investigate a problem. Take your time, read debug output very carefully.
- Try to understand what's happening! Step by step.
- Think about it! What can be wrong? Where can be an error?
- Think about how to get more information in the process! Where to get more information in the process?
- Isolate more and more exactly the spot of the error
- Debug output your variables
- Make small test programs
If you do not understand why the whole program reacts like it does, take small bits out of it and make a small testing program and take the problematic data into that.
- Be prepared for own blind spots.
Program errors you do not recognize even if they are directly in front of you, even if you'd seen them a dozen of times.(I had two spelling errors in your name in this post even if I read a hundred times in this forum so far.) Maybe Programming language behaviour that is not like you always believed it to be.
- From time to time a break helps a lot
Apply that on the current problem and you will get closer to the cause.
So my question to you is here: What are the differences between the two client connection session debug logs?