Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set ALPN to ssh if client sends SSH Magic Bytes #4

Open
coolaj86 opened this issue May 11, 2024 · 0 comments
Open

Set ALPN to ssh if client sends SSH Magic Bytes #4

coolaj86 opened this issue May 11, 2024 · 0 comments

Comments

@coolaj86
Copy link
Contributor

Set alpn to ssh if the first bytes from the client are 53 53 48 2d 32 2e 30 (SSH-2.0)

How to Find the Magic Bytes

nc -l localhost 2222 | hexyl
ssh localhost -p 2222 -o ConnectTimeout=1s
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 53 53 48 2d 32 2e 30 2d ┊ 4f 70 65 6e 53 53 48 5f │SSH-2.0-┊OpenSSH_│
│00000010│ 39 2e 36 0d 0a          ┊                         │9.6__   ┊        │
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
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

No branches or pull requests

1 participant