Question

FreeBSD 13.2 post-install : impossible login

While FreeBSD is not longer listed in available OS i follow instructions to upload a custom image, that i found at https://bsd-cloud-image.org/ ; anything goes but at first login i get

Server refused public-key signature despite accepting key.

that, as far as i know, depends on a sshd_config parameter.

to walkaround the matter i try to set password login at droplet creation time, but it is denied.

thus even recovery console, that require the root password, became unusable.

so the question is : must i create a custom personalized image? if yes the matter moves to : can i use an existing FreeBSD 12 droplet to build the needed FreeBSD 13 image with sshd_config adequate to D.O. login requirements?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
August 31, 2023

You can use your existing FreeBSD 12 droplet to build the needed FreeBSD 13 image with an sshd_config that matches DigitalOcean’s login requirements. Ensure to set your sshd_config file with ‘PermitRootLogin prohibit-password’ to allow key-based authentication.

If you are still getting the same error, Server refused public-key signature despite accepting key, try regenerating the SSH keys on your server or your local machine, and re-adding them.

Regards

Bobby Iliev
Site Moderator
Site Moderator badge
August 23, 2023

Hi there,

Indeed, as you mentioned you could try creating a customized FreeBSD image where you’ve pre-configured the sshd_config with the correct parameters for public key authentication.

Alternatively, if you already have a FreeBSD 12 Droplet, you could take a snapshot and then spin up a new Droplet based on that snapshot.

After that you could upgrade the new Droplet to FreeBSD 13 as described in the FreeBSD docs here:

https://docs.freebsd.org/en/books/handbook/cutting-edge/#freebsdupdate-upgrade

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel