nextcloud / nextcloud/nextcloudpi
Polishing setting up SSH
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 2.9k
- Forks
- 318
- PR merge metrics
- No merged PRs in 30d
Description
After setting up SSH with the webinterface of nextcloud pi I was unable to log in via ssh.
There were multiple hurdles that pointed me in the wrong direction.
With the gained knowledge I walked through the steps again.
I hope some of these hurdles can be fixed.
I tested this with a Raspberry Pi 3B+ and the NextCloud_RaspberryPi_v1.52.0 image.
I dd-ed the image to an sd-card and followed the activation steps. Answering no to the questions.
Enabled ssh and connected via ssh to the raspberry pi.
The following message was shown:
$ ssh ncpadmin@nextcloudpi.local
Please note that SSH may not work until a valid user has been set up.
See http://rptl.io/newuser for details.
Received disconnect from 192.168.88.232 port 22:2: Too many authentication failures
Disconnected from 192.168.88.232 port 22
The https://rptl.io/newuser link led me believe I had to first set it up via physical access.
After connecting a monitor I saw a screen which looks almost identical to this image:
https://www.raspberrypi.com/app/uploads/2022/03/newuser-1.png
but with the question: "Which user would you like to rename?".
- note, at first I had another problem, I wouldn't see any output as soon as the output mode switched to display the image. My HDMI cable turned out to be subtly broken.
My ideal solution is: when setting up an ssh account, disable of the 'which user user would you like to rename` process. This also removes the newuser warning when connecting via ssh.
The option to add an ssh-key when creating the ssh user would also have solved the issue for me.
For others that are having this problem. I was able to login by forcing ssh to prefer passwords:
ssh -o PubkeyAuthentication=no -o PreferredAuthentications=password ncpadmin@nextcloudpi.local
Regards,
Roland
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the activation and SSH setup steps on the Raspberry Pi image described in the issue, including the password-preferred SSH command. Review the web interface's SSH-account setup and the resulting new-user flow; done means a newly created SSH account can log in without the misleading warning or rename prompt, with any SSH-key option assessed against the reported alternatives.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- raspberry-pi
- Domain
- authentication, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100