Bug 1453 - sshd closes connections.
Summary: sshd closes connections.
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 4.9p1
Hardware: amd64 OpenBSD
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 02:45 AEDT by mindrot
Modified: 2008-04-04 10:02 AEDT (History)
2 users (show)

See Also:


Attachments
Output from sshd -4 -d (3.89 KB, text/plain)
2008-04-01 02:45 AEDT, mindrot
no flags Details
Revert CMSG twiddling (1.18 KB, patch)
2008-04-01 12:44 AEDT, Damien Miller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mindrot 2008-04-01 02:45:50 AEDT
Created attachment 1479 [details]
Output from sshd -4 -d

I downloaded and installed OpenSSH 4.9 on OpenBSD 4.2 as per the instruction on OpenSSH.org.

sshd can be started, but cannot be connect to from outside.

Attached it output from sshd -4 -d
Comment 1 Damien Miller 2008-04-01 09:38:20 AEDT
What platform are you on?
Comment 2 Darren Tucker 2008-04-01 09:55:41 AEDT
"on OpenBSD 4.2" I suspect :-)

I also suspect that the rebuild was incomplete, probably because of missing dependency files (I've been bitten by that myself although not recently).

Please try "cd /usr/src/usr.bin/ssh && make clean && make depend && make" and see if that resolves the problem.
Comment 3 Darren Tucker 2008-04-01 10:04:26 AEDT
The other thing to watch out for is object files in the source directory, if "make" has ever been run without a preceeding "make obj".  To account for this, please try this instead of my previous suggested commandline:

cd /usr/src/usr.bin/ssh
find . -name obj | xargs rm -rf
make clean cleandir
make obj depend
make

Oh, and I see what djm meant by "what platform?": what hardware is "Other"?
Comment 4 mindrot 2008-04-01 12:17:57 AEDT
Hello, it is running on AMD64 OpenBSD 4.2-release.

Darren I will try your commands as long as possible, thanks.
Comment 5 Damien Miller 2008-04-01 12:44:53 AEDT
Created attachment 1480 [details]
Revert CMSG twiddling

Please try this patch - it seems that some bugs in the kernel ABI were fixed post-4.3.
Comment 6 mindrot 2008-04-01 18:19:17 AEDT
Damien, your patch seems to work!!

The patch was applied to the source, then OpenSSH was installed as per the instruction at openssh.com/openbsd.html for OpenSSH 4.9. It now just connects like normal.

Thanks.
Comment 7 Damien Miller 2008-04-04 10:02:22 AEDT
Close resolved bugs after release.