[REDFISH-1] Not copying ssh key files to RC from Build server Created: 11/Apr/19 Updated: 11/Apr/19 Resolved: 11/Apr/19 |
|
| Status: | Done |
| Project: | Redfish |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Indumathi Buddi | Assignee: | David Plunkett |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Hello, We are trying to setup RC from Build server. we ran install_server_os.sh file as per the instructions provided under Akraino wiki. While running this script, everything is going smoothly but when copying the ssh key files from build server to RC node those are not copying properly and we got an error. Please see the below error: Getting new host keys for [10.51.34.230]
/usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Running first boot script
By understanding install_server_os.sh script that, it suppose to copy ssh key files automatically from build server to RC node, but here in this case it is not. Ran this script from scratch multiple times and same issue came up again. Please see the attached logs for quick reference. Please take a look at the error and let me know. |
| Comments |
| Comment by Indumathi Buddi [ 11/Apr/19 ] |
|
Thanks FYI, David. The provided solution resolved the issue. |
| Comment by David Plunkett [ 11/Apr/19 ] |
|
Based on your logs, you are using sudo/su in a way that did not set your environmental variables such as $HOME to the correct settings for the root user. You can see in the logs that you are running as user root, but the $HOME variable is still set to /home/ubunut. The logs also show that the $HOME/.ssh/ files are owned by a mix of root and ubuntu. Because $HOME is not correctly set, the wrong files are being used by the ssh key commands. Specifically the install is failing to update the authorized_keys file which is owned by ubuntu. There are many ways to address this. If you are using sudo th change to root, then use sudo -i to create a new interactive shell with the correct environment variables.
Relevant log entries: Setting up ssh keys for user [root] with home [/home/ubuntu] Removing any old host keys for [10.51.34.230] total 16
/home/ubuntu/.ssh/known_hosts updated.
|