Skip to content

Support LF as line ending for banner and identification string #761

Closed

Description

@HeckoLeSorcier

This error appear with some SSH host :

The server response contains a null character at position 0x0000002A:

00000000 53 53 48 2D 32 2E 30 2D 4F 70 65 6E 53 53 48 5F SSH-2.0-OpenSSH_
00000010 37 2E 34 70 31 20 52 61 73 70 62 69 61 6E 2D 31 7.4p1 Raspbian-1
00000020 30 2B 64 65 62 39 75 37 0A 00 0+deb9u7..

A server must not send a null character before the Protocol Version Exchange is complete.

More information is available here:
https://tools.ietf.org/html/rfc4253#section-4.2

Null character can be part of the identification string ?

Activity

  1. changed the title [-]Null character error with Protocol Version Exchange[/-] [+]Support LF as line ending for banner and identification string[/+] on Jan 12, 2021
  2. drieseng commented on Jan 12, 2021

    @drieseng
    Member

    @DkGr @Kim-SSi @jimbobmcgee Please confirm that this issue is fixed in 91b6458.

  3. modified the milestones: 2020.0.1, 2020.0.0 on Jan 12, 2021
  4. HeckoLeSorcier commented on Jan 12, 2021

    @HeckoLeSorcier
    Author

    Fixed for me. Good job ! Thank you.

  5. Kim-SSi commented on Jan 12, 2021

    @Kim-SSi

    This also fixed it for me. Great. Thank you.

  6. slim16165 commented on Jan 17, 2021

    @slim16165

    Thanks a lot guys for solving this issue. I had it with Cloudways. The last code works nicely, can you release the updated 2020.0.1 on nuget?
    ps: I owe you a beer @drieseng

  7. mattzink commented on Jan 21, 2021

    @mattzink

    We are also seeing this issue with certain builds of OpenSSH. I would like to second @slim16165's suggestion to release a build with this fix.

  8. drieseng commented on Jan 21, 2021

    @drieseng
    Member

    Sorry guys, I don't have a lot of spare cycles. I hope to find time this weekend.

  9. modified the milestones: 2020.0.0, 2020.0.1 on Jan 24, 2021
  10. drieseng commented on Jan 24, 2021

    @drieseng
    Member

    Release 2020.0.1 is now available.

  11. added a commit that references this issue on Mar 22, 2021
    9675fa2
  12. added a commit that references this issue on Mar 13, 2024
    91b6458
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions