T
T
TechNOIR2019-02-05 21:50:10
linux
TechNOIR, 2019-02-05 21:50:10

How to fix "Permission denied (publickey)." when reconnecting via ssh?

Good afternoon.
Connected for the first time via ssh to the device. All OK.
Then I reinstalled the system on that device. I connect and get Permission denied (publickey).
I have not encountered this before ... Tell me how to be?
thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2019-02-06
@Norkotik

Reinstalled the system, new keys were generated

R
Ruslan Fedoseev, 2019-02-06
@martin74ua

Reinstalled the system - new keys
ssh-keygen -R server_name
ssh-keygen -R server_ip
these commands will remove the keys of the specified server from known_hosts,
or clean
.ssh/known_hosts manually

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question