You are not logged in.

#1 2022-04-05 21:57:21

gyurman
Member
From: Budapest/Hungary
Registered: 2011-03-22
Posts: 67

[solved] SSH not accept PubkeyAuthentication

debug1: Offering public key: /home/yg/.ssh/id_ed25519.pub ED25519 SHA256:xxxx explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/yg/.ssh/id_rsa
no such identity: /home/yg/.ssh/id_rsa: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
@localhost: Permission denied (publickey).

Why? It is bug? i working after update until reboot.

Last edited by gyurman (2022-04-06 19:21:17)

Offline

#2 2022-04-05 22:23:39

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [solved] SSH not accept PubkeyAuthentication

First it tries to read a file from /home/yg, then it tries to read a file from /home/gyurmo.

Do you have any line in your SSH config that hardcodes a path to a (non-existing) SSH key file? Do those two files exist (and are they both readable)?


pkgshackscfgblag

Offline

#3 2022-04-05 22:28:07

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [solved] SSH not accept PubkeyAuthentication

gyurman wrote:

Why? It is bug? i working after update until reboot.

Have you rebooted the system since the last time the openssh package was updated before now?

Last edited by loqs (2022-04-05 22:28:28)

Offline

#4 2022-04-06 11:41:28

gyurman
Member
From: Budapest/Hungary
Registered: 2011-03-22
Posts: 67

Re: [solved] SSH not accept PubkeyAuthentication

ayekat wrote:

First.... ?

Thank you #ayekat so much for your attention. I wanted to hide my identity on the forum. ;-)

Offline

#5 2022-04-06 11:42:48

gyurman
Member
From: Budapest/Hungary
Registered: 2011-03-22
Posts: 67

Re: [solved] SSH not accept PubkeyAuthentication

loqs wrote:

.... the openssh package was updated before now?

What happened was that I was trying to pull the movies from Raspberry for Jellyfin with ssfs. But after NVENC was enabled, the PC froze. I turned it off.

But after that, I could not enter raspberry either local or remote with publickey. The config files have not changed. Raspberry uses Manjaro for PC Arch Linux.
What could have blocked it? The files appear to be there, no changes or rights exchanges haven't been made.

If I have any type of public key generated I got same.
debug2: we did not send a packet, disable method

Last edited by gyurman (2022-04-06 11:46:43)

Offline

#6 2022-04-06 13:17:20

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [solved] SSH not accept PubkeyAuthentication

"Any reason."
"Some reason."
https://unix.stackexchange.com/question … -to-server

Run the server in debug mode and check its logs.

Offline

#7 2022-04-06 15:37:57

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,975
Website

Re: [solved] SSH not accept PubkeyAuthentication

gyurman wrote:
debug1: Trying private key: /home/yg/.ssh/id_rsa
no such identity: /home/yg/.ssh/id_rsa: No such file or directory

You need (at least) the private key on the client. You don't seem to have it.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#8 2022-04-06 19:20:27

gyurman
Member
From: Budapest/Hungary
Registered: 2011-03-22
Posts: 67

Re: [solved] SSH not accept PubkeyAuthentication

Oh I could to solve.
https://stackoverflow.com/questions/478 … ble-method

Start a new SSH Server instance on a new port in debug mode with:

/usr/sbin/sshd -d -p 2222

then connect to it from the client with:

ssh -p 2222 user@host
Solving:
chmod g-w /home/user
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys

I don't know, why changed my rights.

Last edited by gyurman (2022-04-06 19:29:44)

Offline

Board footer

Powered by FluxBB