mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 23:45:56 +03:00
[GH-ISSUE #518] Problem with SSH keys #312
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cairoapcampos on GitHub (Jul 13, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/518
I'm using this Dockerfile to build my image:
https://github.com/retspen/webvirtcloud/blob/master/Dockerfile
But as the default user of the container is root I'm having some problems with SSH. The key generated is for the user www-data and not for root when I try to connect with the command
ssh root@compute1the password is requested.Documentation settings:
chown www-data -R ~www-datasudo -u www-data ssh-keygenchown www-data -R ~www-data/.ssh/configTo try to get around the problem, I generated the keys for root with the commands below:
ssh-keygenssh-copy-id root@compute1ssh root@compute1This way the password was no longer requested.
Is there a better way to do these settings?
Note: "passphrase" was not defined when generating the keys. The password requested is the KVM host password.
@5he1n commented on GitHub (Aug 13, 2022):
The correct way to share ssh key with compute is:
and then check it
@cairoapcampos commented on GitHub (Aug 24, 2022):
I tested it and it worked correctly. Thank you.
When evaluating compute node security. Is it better to use a user other than root?
Do you use another user?
@catborise commented on GitHub (Aug 25, 2022):
yes you can/should manage with a user other than root. To make this, you must configure host libvirt.conf.
there are many resources how you can do that;
@cairoapcampos commented on GitHub (Aug 25, 2022):
Thank you again for your help.