raspberrypi / rpi-imager

The home of Raspberry Pi Imager, a user-friendly tool for creating bootable media for Raspberry Pi devices.
https://www.raspberrypi.com/software
Other
1.71k stars 262 forks source link

[BUG] SSH credentials not generated on rasberry pi 4 for Mainsail OS for v1.8.1 #721

Closed lowyoujian closed 9 months ago

lowyoujian commented 12 months ago

Describe the bug A clear and concise description of what the bug is. Unable to ssh into raspberry pi after enabling ssh on raspberry pi imager with username and password.

To Reproduce Include steps to allow us to reproduce the error. Include your host OS,

  1. Selected Raspberry pi 4 for device,
  2. Selected Mainsail for OS
  3. Popup appears to edit configurations
  4. Entered my localhost, username and password, go to next tab and enabled ssh.
  5. Write. I tried both on Windows and Mac 1.8.1 version and facing same issue.

Expected behavior A clear and concise description of what you expected to happen. ssh file should be generated with my username and password, but only found default pi user with random hashed password in userconf.txt

Screenshots Generated boot directory. rp-bug

Desktop (please complete the following information):

The name of the OS you are trying to write Mainsail 1.2.1

Are you using OS Customisation? No Additional context I Actually downloaded 1.7.5 release version and it worked perfectly.

Sharonhazan commented 12 months ago

try clear the cache on AppData\Local\Raspberry Pi\Imager, it might help

tdewey-rpi commented 12 months ago

Thanks for the report, @lowyoujian. We're about to release v1.8.2, which may help resolve this problem.

coreConvention commented 11 months ago

This appears to be broken still. I've tried 1.8.1 and 1.8.3 on Windows 11, I am installing PI OS lite 64bit (I have the 8gb version), and set the user name and password to my name all lower case just to rule out weird character encoding as some posts on the internet seem to suggest. I also tried clearing the AppData cache. I tried, both password auth and public key SSH setting from the imager. It doesnt matter what I do, I an unable to SSH into a newly imaged Pi 4B.

lurch commented 11 months ago

I am installing PI OS lite 64bit...

Why are you commenting on an issue about Mainsail OS? You might find some helpful info in #531 instead.

maxnet commented 11 months ago

It doesnt matter what I do, I an unable to SSH into a newly imaged Pi 4B.

With what exact error message?

As you would also be "unable to ssh", if for example you were using wifi, and had the wrong wifi settings, country code (if using 5 ghz wifi or channel 13), or a wifi AP that only speaks wpa3 instead of wpa2. May want to verify that you do can ping the Pi.

And you do are typing "ssh username@name-of-pi.local" in the windows command prompt when using pub key authentication? (Instead of 3rd party ssh clients like putty, which may or may not support the right algorithms for recent RPI OS versions, and expect the key file at different location)

coreConvention commented 11 months ago

I am installing PI OS lite 64bit...

Why are you commenting on an issue about Mainsail OS? You might find some helpful info in #531 instead.

Haha my bad I didn't read the title, I had just done a search and read only the post and it looked like the exact same issue I have been having.

coreConvention commented 11 months ago

It doesnt matter what I do, I an unable to SSH into a newly imaged Pi 4B.

With what exact error message?

As you would also be "unable to ssh", if for example you were using wifi, and had the wrong wifi settings, country code (if using 5 ghz wifi or channel 13), or a wifi AP that only speaks wpa3 instead of wpa2. May want to verify that you do can ping the Pi.

And you do are typing "ssh username@name-of-pi.local" in the windows command prompt when using pub key authentication? (Instead of 3rd party ssh clients like putty, which may or may not support the right algorithms for recent RPI OS versions, and expect the key file at different location)

I have verified connectivity via my UniFi controller and I can ping it over wifi and yes I am using user@name.local. I have tried to connect via putty as well as the windows native ssh client.

Anyway, it was not my intention to crap up this thread. Just thought the issue seemed similar.

derekste commented 11 months ago

1.8.1 imager is extremely buggy on Mac - none of the SSH options are respected across any OS choice. 1.8.3 fixed my issue.

tdewey-rpi commented 11 months ago

@lowyoujian Are you able to reproduce this issue on 1.8.3?

tdewey-rpi commented 11 months ago

I believe this may be related to #531, which should be resolved imminently.

asha77 commented 11 months ago

I check this issue with mainsail os: