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

Disable login with password! #98

Open
modyngs opened this issue Oct 9, 2022 · 5 comments
Open

Disable login with password! #98

modyngs opened this issue Oct 9, 2022 · 5 comments

Comments

@modyngs
Copy link

modyngs commented Oct 9, 2022

Hi
I've been using cirros as an Entrypoint to some of openstack's VM (VNFs) using SSH and it is great. Thanks to the dev team!
But there might be some Risky ( hazardous ) situations when login with Password is Enabled ( like bruteforce ).

I've always used keypair for SSH login ( ssh -i A.pem user@IP ) and changed the default password, But i'm not sure if there is a way to disable logging in with password for root/user?

P.S: I'm using Cloud image

wget http://download.cirros-cloud.net/0.5.1/cirros-0.5.1-x86_64-disk.img
openstack image create --disk-format qcow2 --container-format bare --public --file cirros-0.5.1-x86_64-disk.img  cirros

Thanks
Best regards

@osfrickler
Copy link
Contributor

CirrOS is meant to be a test image to be used in a CI environment or similar, so the fixed login via a password is a feature. We explicitly state that it should not be deployed anywhere where there is public access. Seems for you use case some other distro would be more suited, have you looked at alpine maybe?

@modyngs
Copy link
Author

modyngs commented Dec 20, 2022

@osfrickler Dear Jens, Thanks for the reply but Non of the other distros has the cloud image in size of the CirrOS { small in size }
I dont mean the whole login process gets disabled but the SSH login with password which is commonly available in the ssh config file(Its an option in the ssh config file that can be disabled or not).

The cirros uses dropbear, it has the option to disable pasword login for remote connections. but it doesnt work!
$ dropbear -h

Best regards

@modyngs
Copy link
Author

modyngs commented Dec 20, 2022

Is there anyway that "JUST authorized_keys" be able to login? ( Not any other ways, including passwords login , ...)
{this option is available in CirrOS, but login with password is also possible!!!__ i dont want that}

@priteau
Copy link

priteau commented Feb 23, 2024

@osfrickler We have a similar use case: we use CirrOS for validating OpenStack with Tempest. On some deployments we have to use networks exposed to the Internet. I would be great if the CirrOS project would publish an alternative version of the image with no password built-in.

@modyngs
Copy link
Author

modyngs commented Mar 14, 2024

@priteau
Have you found a way to do that?
Thanks

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