Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
logowanie przez ssh
#1
0
Nie wiem jak ale coś pomieszałem w kluczu ssh. Stale dostaje taki komunikat

Kod:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:16JHJ/rgecXOWewD+ayaG/xYSzVGEy2PsxUj8upFKWs.
Please contact your system administrator.
Add correct host key in /home/goldi111/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/goldi111/.ssh/known_hosts:3
  remove with:
  ssh-keygen -f "/home/goldi111/.ssh/known_hosts" -R "192.168.1.1"
RSA host key for 192.168.1.1 has changed and you have requested strict checking.
Host key verification failed.

Jak to usunoc i wrócić do poprzedniego logowania
Odpowiedz
#2
0
Myślę, że możesz założyć, że ten klucz faktycznie się zmienił, bo się zmienia np. podczas reinstalacji serwera.
Wykonaj więc to co tam pisze.

Inne przyczyny zmiany klucza opisano np. tu https://serverfault.com/questions/537035...expectedly
Cytat:    You have changed the host keys yourself, and didn't clear or update them on your client machines.
    This is the most common situation. Checksum the key files and be ABSOLUTELY CERTAIN they haven't changed.

    You have changed your SSH configuration to present (or request) a different key type than before.
    e.g. you previously wanted RSA or DSA keys, now you use ECDSA -- that's a "key change".
    If this is the case, verify and accept the new keys (or if this isn't what you wanted, undo the change).
    (It sounds like you're in situation #2 -- Undo your changes, restart sshd, and verify that things work as expected. If you haven't accepted the new keys anywhere undoing the change should make the error go away.)

    SOMEONE IS DOING SOMETHING NASTY
    The Man-in-the-Middle attack SSH warns you about has reared its ugly head. Someone is actively trying to intercept your communication to steal your private key or do something else you almost certainly don't want them to be doing.
Odpowiedz
#3
0
Wygenerowalem klucz do serwera 192.168.1.1 I dodalem i bez zmian.
Co zrobić jak odinstalować logowanie przez klucz publiczny
Odpowiedz
#4
0
Co dokładnie zrobiłeś?

Co do zmiany formy logowania zerknij do /etc/ssh/sshd_config do sekcji # Authentication:
Bieżąca konfiguracja
Kod:
sudo sshd -T
Odpowiedz


Skocz do:




Użytkownicy przeglądający ten wątek: 1 gości