mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #439] sudo -u www-data ssh-copy-id root@compute1 error? #270
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#270
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 @tree1123 on GitHub (May 14, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/439
i install webvirtcloud in ubuntu 18.04 success
but when i want to connect a computer and enter
sudo -u www-data ssh-copy-id root@compute1
show me
/usr/bin/ssh-copy-id: 59: cd: can't cd to /root
/usr/bin/ssh-copy-id: ERROR: No identities found
@catborise commented on GitHub (May 14, 2021):
Before copy it. You should generate an id with ssh-keygen
@cyberfarer commented on GitHub (Apr 14, 2022):
Try ...
su www-data -s /bin/bash
cd ~
ssh-keygen
Copy the content of /var/www/.ssh/id_rsa.pub to your hypervisor host and paste into /root/.ssh/authorized_keys - be careful to not copy any whitespace or miss any characters.
then back to the guest ssh root@hypervisor accept fingerprint and you should be good to go.