BebboSSH AROS 1.0.9 fixes SSH channel close

On this page

BebboSSH AROS 1.0.9 is available for i386, x86_64 and aarch64. This maintenance release of my SSH/SFTP port fixes a subtle but important case: the server now responds correctly when the client initiates a channel close.

The project derives from BebboSSH by Stefan “Bebbo” Franke; the AROS port is my derivative work. This update does not introduce a full interactive shell.

When the client closes a channel

Previously, an SSH_MSG_CHANNEL_CLOSE sent first by the client could be ignored, with “unknown packet received 97” in the log. The client waited for a reply and the channel remained open until the connection ended.

The daemon now acknowledges the request, sends its own close and frees the channel. Idle sessions, SFTP and direct-tcpip are answered immediately; when a command is still running, the reply comes after it ends. No more messages are sent on the closed channel, and a close for an unknown channel is ignored.

An SFTP buffer fix

An SFTP session that had produced a large reply could leave its reply buffer allocated on close. The new version frees it. This is resource cleanup, not a protocol change or a new cipher.

Tests and remaining limits

The release notes document testing the archives on AROS One i386 and x86_64 under QEMU and on AROS aarch64 under QEMU. Cases include closing sessions, SFTP and forwarding, as well as OpenSSH SSH/SCP/SFTP checks. A Raspberry Pi 400 was not available for this release.

Important limits remain: no full interactive PTY, pipes or redirection in remote commands. On x86_64, commands are synchronous and may block the daemon; consult the platform notes for other execution and timeout details. A command timeout does not guarantee that the process is terminated. The x86_64 notes also flag a separate e1000 network driver problem under load and recommend rtl8139 or pcnet until the distribution includes the upstream fix.

Download BebboSSH AROS 1.0.9

Before exposing the service, replace the bundled test credentials and follow README.AROS.txt for the seed and host key.

Sources

AUTHOR

IT specialist, developer and systems engineer with a long history across code, Linux servers, retrocomputers and e-learning platforms. On AndroidLab he brings a technical, pragmatic eye: less brochure smoke, more attention to infrastructure, usability, privacy, updates and the real consequences of manufacturers' choices.

Leave a Comment