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

added SSH key mention in failed ssh connection warning message #1827

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

OniriCorpe
Copy link
Member

The problem

we advertise changing the ssh port, but using an ssh key is better for the security of the server

Solution

mention SSH key authentication in failed ssh connection warning message

maybe we want to remove the "use a custom port for SSH" part because it's a pain to use and in 2 seconds you can find the right port by scanning...

tbh that's not good advice

PR Status

done

How to test

...

@alexAubin
Copy link
Member

alexAubin commented May 8, 2024

maybe we want to remove the "use a custom port for SSH" part because it's a pain to use and in 2 seconds you can find the right port by scanning...

Well strictly-speaking this exact message is about an usual number of failed auth attempts, which typically comes from bots brute-forcing SSH (though could also come from a local user brute-forcing sudo), and using SSH keys ain't gonna reduce that number, but classically changing the SSH port will, because the vast majority of bots won't scan ports

@OniriCorpe
Copy link
Member Author

Yes but if the password authentication is disabled, the user can ignore this message about failed password authentications

@alexAubin
Copy link
Member

Yes and no, because it still means the auth log is unecessarily flooded and growing large, and the mecanism also spots e.g. failed sudo attempts which could be symptomatic of a malicious user or pwned app brute-forcing stuff

@OniriCorpe
Copy link
Member Author

hm maybe it would be better to distinguish between "failed ssh auth attempts" and "failed sudo auth attempts" if it's possible?

because for now the message doesn't warn about the sudo thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants