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

Problem with pubkey authentication to ssh into MiSTer #56

Open
Saroumane opened this issue Apr 19, 2024 · 1 comment
Open

Problem with pubkey authentication to ssh into MiSTer #56

Saroumane opened this issue Apr 19, 2024 · 1 comment

Comments

@Saroumane
Copy link

Hello, not sure if it's the right place to report this kind of problem, but let's try.

I can't anymore use my rsa pubkey to login into my MiSTer.
Maybe something has changed with the latest linux update for MiSTer.

What used to work :
copy my ~/.ssh/id_rsa.pub (on my PC) to ~/.ssh/authorized_keys (on MiSTer as root)
On MiSTer :

# chmod 600 ~/.ssh/authorized_keys
# chmod 700 ~/.ssh

On PC :
$ ssh root@MyMiSTerIP

Now, when I try this (with 'ssh -v' for more verbosity) :
the connection hangs at:

debug1: Offering public key: ~/.ssh/id_rsa RSA SHA256:rGQ/rMN/uqHUX+2wIH/Ch5ylXOe8Loxwxxxxxxxxxxx agent
debug1: Server accepts key: ~/.ssh/id_rsa RSA SHA256:rGQ/rMN/uqHUX+2wIH/Ch5ylXOe8Loxwxxxxxxxxxx agent 

('xxxxxxxxx' is an edit from me)

Interestingly, if I alter ~/.ssh/authorized_keys to force the pubkey authentication to fail, I don't get the Server accepts key after the Offering public key . Instead it does not hang anymore, and fallbacks to password authentication.

@tjanas
Copy link

tjanas commented Apr 22, 2024

Would https://github.com/MiSTer-devel/Main_MiSTer be a more appropriate repo for this issue?

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

No branches or pull requests

2 participants