#Passwordless ssh suddenly stopped working

37 messages · Page 1 of 1 (latest)

cloud pawn
#

Title. I regenerated my id_rsa.pub and added it to authorized keys on remote using ssh-copy-id, but it still asks for password. Yesterday it worked fine

hard glacier
#

just try resetting the ssh passphrase to blank string.

cloud pawn
#

ill try to fully reset ssh on remote

#

lmfao, i reinstalled openssh over ssh

#

it doesnt work-_-

rich furnace
#

check the authorized_keys file under ~/.ssh of the desired user, and check to see if you’re using the right identity file on the client. if it works, disable password login in SSHD config

rich furnace
#

did you reload / restart the SSHD service?

#

also send screenshots of what’s going on

cloud pawn
#

i can send video how i reconfigure remote ssh

rich furnace
#

gotcha

cloud pawn
#

can disabled sshd service on client be an issue?

rich furnace
cloud pawn
#

okay, wait a bit

rich furnace
#

👍

cloud pawn
cloud pawn
rich furnace
#

okay there’s a few things going on

#

assuming you have the private key in your clients .ssh folder, try doing this

ssh <ip> -i <private key location>
#

this should force passwordless authentication

#

if it passes, you can then add an alias to your ssh config with that identity file

cloud pawn
#

lmfao even with private key it asks password

rich furnace
#

hmmmmm

#

check your sshd config, that’s the only other thing i’m thinking here

#

unless your private key doesn’t match

#

or copy over the public key manually

cloud pawn
#

okay, what should i check there? maybe, set hostkey?

rich furnace
#

slight warning i’ll be heading to bed soon, but will respond tomorrow

cloud pawn
#

okay

rich furnace
#

i’ll play around with this tomorrow, my apologies

cloud pawn
#

its okay, thank you

rich furnace
#

i’m following this thread, just @ me

#

sleep well if you’re in EST lol

cloud pawn
#

lmao, im in GMT + 4 timezone