SSH Server: Incorrect identification (null characters not allowed) (OD-1141)
Armin Pfurtscheller opened 3 years ago

When using SSH to pull/push code from/to repository, the OneDev server keeps logging the following on my Docker setup:

WARN o.a.s.s.session.ServerSessionImpl - exceptionCaught(ServerSessionImpl[null@/172.31.0.1:38744])[state=Opened] StreamCorruptedException: Incorrect identification (null characters not allowed) - at line 1 character #7 after '�'

I've added the SSY key to my user and the communication is also working, but I'm not sure if this is something I should be worried about or I could fix, or has this to be fixed on the server side (if an issue)? While doing a quick lookup I only found this issue, which might be helpful and as far as I see it provides a potential solution.

Thanks for having a look!

  • Armin Pfurtscheller changed fields 3 years ago
    Name Previous Value Current Value
    Type
    Support Request
    Discussion
  • Robin Shen commented 3 years ago

    I ran onedev 7.9.7 via docker on ubuntu 22.04, created a test project, and cloned url ssh://localhost:6611/test. No any errors printed in server log.

    Can you please let me know your reproducing details?

  • Armin Pfurtscheller commented 3 years ago

    Hi Robin thanks for the quick response. I did literally the same, I'm also running latest version via Docker on OS X, added the SSH key to my user and run the git commands with the following config for SSH:

    [core]
       sshCommand = ssh -o IdentitiesOnly=yes -o UseKeychain=yes -i ~/.ssh/<my_key> -F /dev/null
    

    And that's it, no special settings ore anything else in place. But I can also not reproduce it intentionally, I just see the logs sometimes popping up. And everything is working, so I just wanted to drop the question here if you have ever encountered this problem? Or if this could be related to my SSH key or whatever, I never experienced such a message with other Git servers (likely using the same apache implementation in the background).

  • Robin Shen changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 3 years ago

    Closing now. Feel free to reopen if there is more clue.

issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1141
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover