OpenSSH for OS/390

E Pivovarov e5pivovarov at hotmail.com
Fri Jan 25 16:50:22 EST 2008


I have been trying to compile OpenSSH_4.7p1 for OS/390 and got really stuck. IBM released a build of v3.8.1p1 several years ago, but I do not know whether anyone else has ever managed to compile it for OS/390 or OS/z.

The first problem is that the build apparently performs ssh transport exchange using EBCDIC character encoding instead of ASCII (which breaks RFC 4253) and I am not sure how to do the conversion properly so that it will not corrupt truely binary data.

The second problem is that connection fails even for ssh client and deamon that belong to the same build. Here is the output of sshd (the client has received SSH2_MSG_SERVICE_ACCEPT and is running dispatch_run):

debug1: attempt 0 failures 0
debug3: mm_getpwnamallow entering
debug3: mm_request_send entering: type 6
debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
debug3: mm_request_receive_expect entering: type 7
debug3: mm_request_receive entering
debug3: monitor_read: checking request 6
debug3: mm_answer_pwnamallow
debug3: Trying to reverse map address 10.55.27.21.
debug2: parse_server_config: config reprocess config len 209
debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 7
debug2: monitor_read: 6 used once, disabling now
debug3: mm_request_receive entering
mm_getpwnamallow: option block size mismatch

It appears that some of the debugging messages are coming from the parent thread and some from the child thread. All I can add is that the buffer "m" in mm_getpwnamallow() has alloc=32768, offset=52, end=10055 and also that buffer_get_string() returns len=7, which is rather different from sizeof(*newopts)=9988, indeed. I am really lost here and cannot figure out what is wrong.

Can anybody advise me on how to fix it or perhaps there is already a patch?

Thanks,
Eugene
_________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan


More information about the openssh-unix-dev mailing list