Article 6PPK6 set a new ssh key

set a new ssh key

by
Pedroski
from LinuxQuestions.org on (#6PPK6)
I drowned my laptop in a glass of water!

The NVMe ssd is dead. Luckily, I regularly backed up files using rsync to my old laptop. Except ...

Except I never thought to back up the ssh key.

I have a little cloud server, more for practice than anything. It's cheap.

I can log in to the cloud server and update things, I just did that:

Quote:
pedro@pedro-MSI:~$ ssh -p 22 -i ~/.ssh/my_cloud_ed25519 pedro@123.123.123.123
Warning: Identity file /home/pedro/.ssh/my_cloud_ed25519 not accessible: No such file or directory.
The authenticity of host '123.123.123.1233 (123.123.123.123)' can't be established.
ED25519 key fingerprint is SHA256:PXRdztdaAao+bsokvEk2el+PTridHvWUSG4kKJoMH3A.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '' (ED25519) to the list of known hosts.
pedro@195.20.254.33's password:
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-106-generic x86_64)
But in my home folder on this new laptop, in the folder .ssh there is nothing, and I never backed it up!

How should I proceed to set a new ssh key?

And how to remove the old key from the cloud server? Or is that not necessary?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments