Skip to content

Disconnect send path and banner - #67

Merged
mkj merged 4 commits into
mkj:mainfrom
brainstorm:disconnect_send_path
Nov 29, 2026
Merged

mkj merged 4 commits into
mkj:mainfrom
brainstorm:disconnect_send_path

Conversation

@brainstorm

@brainstorm brainstorm commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Hi @mkj,

I'm still chasing the reason behind sunset not properly closing the client connection on Ctrl-C and requiring a SIGKILL or the "secret" OpenSSH sub-console to terminate the session on the client side :)

But anyhow, this PR is more about brainstorm/ssh-stamp#123 and brainstorm/ssh-stamp#144 where we try to report machine-readable strings back to the client (with order-predictable JSON) and its HIL (Hardware In the Loop) testing and automation that @jubeormk1 has been putting together.

The first PR needs some more work to reduce complexity but in any case, I figured this might be a good addition to sunset w.r.t RFC 4253 "for completeness" in the "worst case", and in the best case, fixing the bug described in my first sentence (giving the client a bit more info other than just abruptly dropping the connection)?

Cheers!

/cc @mmalenic

@brainstorm
brainstorm force-pushed the disconnect_send_path branch from 5208ee3 to 25c6efa Compare October 4, 2026 11:08
@mkj

mkj commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Which client are you testing with? A long time ago with Dropbear iirc disconnect messages didn't seem to be handled much by clients, but maybe that's no longer the case.

@brainstorm

brainstorm commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Which client are you testing with? A long time ago with Dropbear iirc disconnect messages didn't seem to be handled much by clients, but maybe that's no longer the case.

Just plain OpenSSH client:

$ ssh -V
OpenSSH_10.2p1 Ubuntu-2ubuntu3.6, OpenSSL 3.5.5 27 Jan 2026

And I just realized that I don't really need this feature (found an alternative way to parse the first boot bootlogs)... so feel free to drop/close this PR... but it does work indeed, so it might be helpful to others! ;)

OTOH, unfortunately, it does not solve the problem I was trying to address with #44 as well (client session gets stuck and no Ctrl-D/Ctrl-C works, just SIGKILL).

@brainstorm brainstorm closed this Oct 4, 2026
@brainstorm

Copy link
Copy Markdown
Contributor Author

Reopening as I think it's still valuable to tackle the SSH client feedback issue described in brainstorm/ssh-stamp#77 ?

@brainstorm brainstorm reopened this Oct 4, 2026
@mkj
mkj force-pushed the disconnect_send_path branch from 34f4bf3 to 53e9e7d Compare November 29, 2026 14:27
@mkj
mkj force-pushed the disconnect_send_path branch from 53e9e7d to a1e07b5 Compare November 29, 2026 14:37
@mkj
mkj merged commit a1e07b5 into mkj:main Nov 29, 2026
2 checks passed
@mkj

mkj commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Thanks, sorry for the delay getting to this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants