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

Being asked for a password to login as root on SSH #376

Open
EmbeddedSam opened this issue Sep 25, 2023 · 3 comments
Open

Being asked for a password to login as root on SSH #376

EmbeddedSam opened this issue Sep 25, 2023 · 3 comments

Comments

@EmbeddedSam
Copy link

I am using Mac OS terminal to ssh using:

ssh -p 19512 root@localhost

but it is repeatedly asking me for a password and refuses to login. Is there by any chance a password that the documentation isn't making mention of?

Thanks

@EmbeddedSam
Copy link
Author

root@cheribsd-morello-purecap:~ # Sep 25 22:26:56 cheribsd-morello-purecap sshd[989]: error: PAM: Authentication error for root from 10.0.2.2

this is the error I see on the qemu terminal from within CheriBSD while trying to SSH in from MacOS

@brooksdavis
Copy link
Member

It looks like you're running qemu. By default we configure sshd within the qemu disk images to run with PermitRootLogin without-password which allows root logins, but only via an entry in /root/.ssh/authorized_keys. That will typically contain the build hosts's authorized_keys file if you had one when you build the disk image.

@jrtc27
Copy link
Member

jrtc27 commented Sep 26, 2023

It looks like you're running qemu. By default we configure sshd within the qemu disk images to run with PermitRootLogin without-password which allows root logins, but only via an entry in /root/.ssh/authorized_keys. That will typically contain the build hosts's authorized_keys file if you had one when you build the disk image.

Not quite; it’ll be all of the build user’s ~/.ssh/*.pub.

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

3 participants