vermin icon indicating copy to clipboard operation
vermin copied to clipboard

Create a ssh key pair for user at installation time

Open mhewedy opened this issue 4 years ago • 3 comments

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 avatar Jun 19 '20 09:06 mhewedy

Is there a formal process to take issues @mhewedy

aldarisbm avatar Jun 23 '20 12:06 aldarisbm

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 avatar Jun 23 '20 21:06 mhewedy

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

mhewedy avatar Dec 14 '20 15:12 mhewedy