Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH does not work with ubuntu #324

Closed
aik opened this issue Dec 14, 2021 · 6 comments
Closed

SSH does not work with ubuntu #324

aik opened this issue Dec 14, 2021 · 6 comments

Comments

@aik
Copy link

aik commented Dec 14, 2021

I programmed the sd card with ubuntu 2104, crtl-shift-x, ticked ssh and the key, flashed, booted, ssh is running but not accepting the key.
I put the card back to the PC and discovered that "writeable" partition does not have the "pi" user at all and no authorized_key contains anything, I added a key, rebooted, works.

So is the "pi" user and ssh setup only supposed to work with debian? The docs don't seem mention it. Thanks,

@lurch
Copy link
Contributor

lurch commented Dec 14, 2021

Duplicate of #213 , #286 etc. ?

@maxnet
Copy link
Collaborator

maxnet commented Dec 14, 2021

If you compile Imager from git, and "use custom" to select a local Ubuntu server image, you do can customize that now.
(Not the desktop edition)

@aik
Copy link
Author

aik commented Dec 15, 2021

Duplicate of #213 , #286 etc. ?

yeah, sorry for the noise.

If you compile Imager from git, and "use custom" to select a local Ubuntu server image, you do can customize that now. (Not the desktop edition)

ctrl-shift-x works when build from git and the image is local and not downloaded? Or you meant I can change the image myself before telling rpi-imager to write it to the card? If it is that, fixing the image afterwards seems easier (my PC runs fedora anyway).

@maxnet
Copy link
Collaborator

maxnet commented Dec 15, 2021

ctrl-shift-x works when build from git and the image is local and not downloaded?

  1. If you download Ubuntu server from the Internet manually. E.g. by going to: http://cdimage.ubuntu.com/releases/impish/release/ubuntu-21.10-preinstalled-server-arm64+raspi.img.xz

  2. And open that in the latest Imager build from git, you can use advanced settings. It should also show a cog icon on the bottom right that gives you the settings:

screenshot

Will not work if you select Ubuntu from the menu right now instead of downloading it manually, as the repository files have not been updated yet to flag correctly which operating system supports customization and which does not. And it will not perform customization for images that are not flagged.
(With local files you downloaded manually there is no check for flags, so that does work).

Also only supports Ubuntu Server edition (and other images that come with cloud-init), NOT Ubuntu Desktop edition (that does not have that).

@guysoft
Copy link

guysoft commented Jan 11, 2022

Hey, can confirm.
Thanks for pointing out why it does not work. I kept downloading my custom distros and being surprised that it works but then that it does not work on the official images.

@cillian64
Copy link
Collaborator

Closing as a dupe of #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants