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

Create a ssh key pair for user at installation time #5

Open
mhewedy opened this issue Jun 19, 2020 · 3 comments
Open

Create a ssh key pair for user at installation time #5

mhewedy opened this issue Jun 19, 2020 · 3 comments
Labels
security Represents a security issue

Comments

@mhewedy
Copy link
Owner

mhewedy commented Jun 19, 2020

vermin - now - is more suitable for development and testing activities, and this is because it now uses one share ssh key pair located at https://github.com/mhewedy/vermin/tree/master/etc/keys

The point here is to create a key pair for the use at installation time, and on each new VM create, copy the public key inside the VM instead of shipping the images with a copy of the key in the link above.

@mhewedy mhewedy added the security Represents a security issue label Jun 19, 2020
@aldarisbm
Copy link
Contributor

Is there a formal process to take issues @mhewedy

@mhewedy
Copy link
Owner Author

mhewedy commented Jun 23, 2020

Is there a formal process to take issues @mhewedy

Sorry I don't understand what you mean by "take issues", do you mean fixing issues? or creating issues?

If you mean fixing issues by submitting PRs, just mention in the issue that you are interested to work on, and then you are more than welcome.

Thanks.

@mhewedy
Copy link
Owner Author

mhewedy commented Dec 14, 2020

The proposed solution is to do like Vagrant. is to create a new ssh key on VM creating and use it.

we might start from here: https://gist.github.com/devinodaniel/8f9b8a4f31573f428f29ec0e884e6673

Then copy the private key to the dir $HOME/.vermin/vms/<vm_name>, and then copy the public key into the running VM into the file$HOME/.ssh/authorized_keys and then remove the unsecure key from $HOME/.ssh/authorized_keys

Then start using the new private key in the ssh -i $HOME/.vermin/vms/<vm_name>/privatekey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Represents a security issue
Projects
None yet
Development

No branches or pull requests

2 participants