-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Asking password without looking for publickeys #245
Comments
Hey @chmuche, Everything from your docker-compose and directory structure looks okay. Can you add Best, |
Thanks for the prompt reply
When I try to connect, I see
but in local
|
@chmuche is there a newline at the end of your authorized keys file? The golang parser will not accept a key without the newline as it doesn't know how to split it. |
@antoniomika I just updated a very old installation to 2.7.0 (using the official docker image) and have the same issue now. Running ssh in verbose mode shows:
Seems like sish doesn't accept rsa keys? (seems related to #196) I just tested a bit further: the latest image that works is 1.1.7. All versions >= 2.0.0 fail with the error shown above. I also updated the command line as needed (private-key-location -> private-keys-directory). Perhaps some upgraded library disabled rsa by default (golang/go#39885 might be of interest?)? |
Huh interesting. @gucki what type of host key are you using for sish? It should negotiate with whatever host key is configured. By default, sish produces an ED25519 key in v1/v2 onwards. Also make sure that ssh-rsa is accepted as an algo on your local client. That functionality changed in a recent openssh version (OpenSSH >= 8.8). i.e.:
So this could a combination of using an old key type, newer client, or incompatible key exchange protocol. |
@antoniomika I'm using openssl-client 1:8.9p1-3 locally. The sish host key is a newly generated (by sish itself) ED25519 key. I don't think the problem is the host key. Sish >= 2.0.0 doesn't seem to like my 4096 SHA256 RSA key. It works fine with sish 1.1.7. I assume there's a bug (misconfiguration of one of the used libraries) in sish. |
I'll generate the same keys (freshly minted ED25519 key from sish + 4096 sha256 key) and report back if I can reproduce the issue. |
I've reproduced the issue and it's indeed what I mentioned above (with the functionality change with disabling the algo version in openssh 8.8). I'm not sure why it worked in prior versions of sish but it's probably a dependency change. i.e. golang/go#37278 and golang/crypto#197 In the meantime, you can either enable ssh-rsa explicitly (like I mentioned in my comment) or on command line with |
@antoniomika Thank you for the analysis. But why can I connect just fine to other "real" ssh servers with exactly the same key without having to adjust my client's openssh configuration? Some of these servers have RSA hostkeys, others ED25519… |
@gucki it's not actually the host key that's the problem unfortunately, it's the client key. If you were using a sha1 based key, things would work okay actually. It has to do with the fact that |
This is why v1.1.7 would work and why it doesn't currently work. Will hopefully have an update to golang/crypto@32db794...c86fa9a#diff-5a7228268ceba2a7dcc7f9884fcde76bffe7b2f6f85f942697ff4ea7110caba3 if you're curious. |
Hi @antoniomika,
And the password is still asked |
This issue reared its head for me immediately after updating my client machine to MacOS Ventura. There seems to have been a config change as documented at https://superuser.com/questions/1749364/git-ssh-permission-denied-in-macos-13-ventura I resolved this by generating an |
Thanks, I will try that ASAP 👍 |
Hey @georgegebbett @chmuche, actually fixed this in the latest version! Make sure you're pulling the latest docker image and should be good to go. |
Hello,
I tried to use
sish
with public key instead of password.But
sish
keep asking a password and I don't know why.If I type nothing, I got rejected.
My docker-compose.yml
content of my path with
tree -I letsencrypt -I ssl
I create
pubkeys/all_keys
withcurl https://github.com/chmuche.keys > pubkeys/all_keys
The text was updated successfully, but these errors were encountered: