Base: rename /root/.ssh before migration
Even on a fresh installation we can find a
/root/.ssh directory, if the admin ran
scp to copy the backup, for instance.
We must rename existing
/root/.ssh before root/ directory is migrated.
#2 Updated by Davide Principi over 6 years ago
migrateDircopy/moves the contents of the first path to the second.
Overwriting is not implemented. In this case we can
- erase /root/.ssh before
- move it to a backup location (
/root/.ssh.save, for instance) .
I would prefer the second, in case the root user has already configured some ssh key...