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

Improve logs when connection fails #4

Open
Mereck13579 opened this issue Oct 26, 2022 · 1 comment
Open

Improve logs when connection fails #4

Mereck13579 opened this issue Oct 26, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Mereck13579
Copy link

Works normally with password but on private key the connection drops without connecting properly.
On the other end the auth logs (some data are obfuscated for privacy):
Oct 26 12:46:09 fubuki sshd[109840]: Connection reset by authenticating user XXX 91.XXX.XXX.254 port 19177 [preauth]

I also couldn't find any log, and the lack of documentation on what keys are accepted doesn't really help me see if I did something wrong here or not (tried with both an older SHA1 RSA key and an ed25519 key)

@ggrandes ggrandes self-assigned this Oct 29, 2022
@ggrandes ggrandes added help wanted Extra attention is needed enhancement New feature or request labels Oct 29, 2022
@ggrandes
Copy link
Owner

I have tried using an RSA key and it works correctly, if I use another RSA key that is not authorized on the remote server, the error I see on the remote is similar to yours.

Connection reset by invalid user test 83.xxx.xxx.xxx port 20264 [preauth]

This does not seem like a bug, but it is necessary to see how to improve the logs.

@ggrandes ggrandes changed the title Connection fails when using private key Improve logs when connection fails Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants