Score:0

Passwordless login in Ubuntu 23.04

cd flag

I created my public key and successfully transformed it to my remote computer, but it still asks password while trying to connect it with SSH. It worked fine on the previous version of Ubuntu 21.04 or later but not on 23.04 or 22.10.

Thank you.

in flag
Welcome to AskUbuntu. To clarify, you would like your SSH key on your desktop to be used as the method to log into your server?
guiverc avatar
cn flag
My guess it's probably something you've done strangely; as I've noted no differences in *lunar* and prior releases. I just tried *passwordless* login into this *lunar* install & it worked perfectly just as it did for me on 22.10 (*kinetic*) & even 21.04 (*hirsute*) & I made no changes between then... Instead your details as provided imply you've done things out of the ordinary anyway (21.04 had no *supported* upgrade path to *lunar* (23.04) for example). FYI: This setup was created in *artful* though the PC died end of *hirsute*; thus it was a new *lunar* install except for my backup configs.
us flag
Just to confirm, did you try the command `ssh -i /path/to/public.key username@ip.address` ?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.