axslinger
Posts: 25
Joined: Wed Mar 01, 2017 4:26 pm

Issues after transferring image

Wed May 17, 2017 3:57 am

After putting my image from an RPi 3B on a SD card to run in my RPi Zero W, I get the following when I run sshd -t:

Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key

I was told my 3B image would run on the zero if I did an update and upgrade first, which I did. But, I've run into issues. It seems to not be able to find anything. Numerous, "No such file or directory" error messages. I'm unable to reinstall the ssh keys. When I execute, 'sudo ssh-keygen -A', it acts like it's working for a minute then comes back to the prompt, but I still get the error above when I try to run sshd -t.

I ran another update/upgrade, to no avail. I also got an error message referencing my sshd-config file and an unknown parameter. It was supposed to be 'Allowusers' and somehow the 'u' got erased! It said, 'Allowsers'! And I haven't opened that file since I set up sshd! I know for a fact I haven't.

In any case, I would appreciate some advice on how to proceed to get sshd running again as well as fix the path information. The image clearly didn't transfer over as easily as I was led to believe. Thanks.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Issues after transferring image

Wed May 17, 2017 5:53 am

How did you create the 'cloned' image? What size card?
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

axslinger
Posts: 25
Joined: Wed Mar 01, 2017 4:26 pm

Re: Issues after transferring image

Wed May 17, 2017 12:09 pm

I went from a 32GB card to another 32GB card. I used the recommended Win32clone tool that is mentioned on this site.

Update: After doing another update /upgrade everything is working. It took quite a while, as if it were a full version old. When it finished, I got the message saying, "Your software has been upgraded....", as if it were a major upgrade. It makes no sense but it's working. Thanks.

Return to “Troubleshooting”