-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Internal SSH server and common ciphers #6623
Comments
Switch to ed25519 by default. RSA was vulnerable 10 years ago. |
How exactly does that work?
After a restart, it still uses the rsa keys. |
(on gitea) that's 100% correct, I assume gogs is the same. Your logs should say why it is using those, you are using the internal SSH not the one on your system yea? If you're using your system's sshd service you need in /etc/ssh/sshd_config something like:
(it generates an ed25519 key by default, but doesn't use it? (it might now idk) however it's genned a key for like 10+ years and not used it by default, so I always set it on all my servers I set my gitea key as chown gitea:gitea (the user that runs your gogs) and chmod 600 on permissions, I know openssh etc won't even let you use keys (unless you're root) if your permissions aren't rw only for that user. (sometimes read only) |
Nope, nothing in the logs. Even with
Yep, I'm using internal SSH
Probably not: In addition you can see here that the path is hardcoded in Gogs. |
oh, well you used that setting so I assumed you already checked if it existed. I don't use gogs so didn't look lmao. |
Describe the bug
Hello,
I can't make a SSH connection between my computer (Arch updated) and my gogs server
Computer:
Server:
I updated SSH_SERVER_CIPHERS to handle additionnal ciphers handled by my computer like
or with all the algorithm in the log, but doesn't work :(
Thank for the help
Gogs version and commit
Tried on 0.12.3 and 0.13.0+dev (commitfa3d011415c21a6e4d2e6500d589ca17cf39090f)
Git version
2.30.2
Go version
go1.15.9
Operating system
Debian Bullseye
Database
mariadb-server-10.6 1:10.6.4+maria~bullseye
To Reproduce
git pull
orpush
on any repositoryCan you reproduce the bug at https://try.gogs.io?
Erorr 500 while trying to create a repo on try.gogs.io
Expected behavior
SSH connection made
Actual behavior
no matching host key type found.
The text was updated successfully, but these errors were encountered: