Can SSH keys be regenerated?

Dear Everyone,

Recently I bought a Nextcloud box (https://nextcloud.com/box/), which is based on Ubuntu core. To set it up I followed the procedure described in the wiki of nextcloud box (https://github.com/nextcloud/nextcloud-snap/wiki/How-to-connect-to-the-Nextcloud-Box-with-SSH#out-of-box-experience-oobe) and I created an account using the SSO account of Ubuntu.
Unfortunately, after a format in my personal computer I lost my private key for that account and now I am not able to connect. So my question is: is there a solution to produce new keys, or do I have to reinstall the the operating system from the begging.

Kind regards,

anagno

1 Like