You are not logged in.

#1 2022-11-22 15:52:24

korimitsu
Member
Registered: 2016-08-14
Posts: 74

wiki for arch install over ssh outdated

I'm trying to install arch from official iso file, better over ssh.
I've set up the root passwd on destination machine, reload sshd, however can't connect to it from remote shell:

bash-3.2$ ssh root@192.168.1.99
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:.
Please contact your system administrator.
Add correct host key in /Users/user/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/user/.ssh/known_hosts:4
Host key for 192.168.1.99 has changed and you have requested strict checking.
Host key verification failed.

Offline

#2 2022-11-22 15:54:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,838

Re: wiki for arch install over ssh outdated

That's an issue on your client, not on the server on the ISO. It even tells you how to fix it.

Last edited by Scimmia (2022-11-22 15:55:22)

Offline

#3 2022-11-22 15:56:28

korimitsu
Member
Registered: 2016-08-14
Posts: 74

Re: wiki for arch install over ssh outdated

Fixed easily:

rm .ssh/known_hosts

Offline

#4 2022-11-22 16:01:18

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 958

Re: wiki for arch install over ssh outdated

This typically is a problem with the *client*, not the server you're trying to connect to. You have connected to 192.168.1.99 before, which was a different server/entity than the Arch box you're trying to install. Remove the cached entries in known_hosts on the client.

Offline

#5 2022-11-22 16:07:08

korimitsu
Member
Registered: 2016-08-14
Posts: 74

Re: wiki for arch install over ssh outdated

Yeah thankfully it's covered by wiki:
Install Arch Linux via SSH

Last edited by korimitsu (2022-11-22 16:07:32)

Offline

#6 2022-11-22 17:11:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,578
Website

Re: wiki for arch install over ssh outdated

FWIW that's a bit of overkill.  Ideally you'd just remove the single offending line from the known_hosts list.  Removing the entire file will result in any other known hosts no longer being recognized on next log-in resulting in a prompt to verify it is correct.  EDIT: though I suppose anyone who uses ssh enough to be affected by this would also not need this explained to them and they'd immediately recognize the problem and the better solution.  So I suppose if one is stumped by the error message, they most likely have nothing of value in known_hosts to loose anyways.

Last edited by Trilby (2022-11-22 17:12:56)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB