SSH
Cookbook
Add a new authorized key (temporarily allow password authentication)
Assuming you already have access to the remote host, enable password based authentication:
-
Edit
/etc/ssh/sshd_configand setPasswordAuthentication yes -
Restart ssh:
systemctl restart ssh -
From the new host:
ssh-keygen -t ed25519 ssh-copy-id user@host -
Disable password authentication again. Edit
/etc/ssh/sshd_configand setPasswordAuthentication no -
systemctl restart ssh