On Fri, Sep 28, 2018 at 11:45 AM Rich Shepard <[email protected]>
wrote:

>    Trying to cp a directory from one desktop to the other using scp fails
> with a public key error. The debug1 output is not making the source of the
> failure obvious to me; I hope it does to the sysadmins here.
>
>    I set the same passphrase on both hosts. Each host's id_ed25519.pub was
> added to the other host's /etc/.ssh/known_hosts file. Neither host has the
> other's key in ~/.ssh/authorized_keys; I thought these were added by
> open-ssh when a connection was established.
>

This is backwards; the known_hosts file is updated during connection (when
it asks if you recognize the system and it makes you type "yes"). You need
to add the public key of the user (not system) you wish to allow to connect
to the current system to the authorized_keys file.

More easily, you could just copy the authorized_keys file from the old host
to the new one.

-wes
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to