Enhancement #1798
Base: rename /root/.ssh before migration
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-base | |||
Target version: | v6.4-beta1 | |||
Resolution: | NEEDINFO: |
Description
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.
Associated revisions
nethserver-base-migrate: force migration of /root/.ssh directory. Refs #1798
History
#1 Updated by Filippo Carletti over 8 years ago
Couldn't we simply overwrite .ssh?
After a full system restore, I'd expect to find the source system.
#2 Updated by Davide Principi over 8 years ago
See source:nethserver-base|root/etc/e-smith/events/actions/nethserver-base-migrate@49090c9f#L129 (line 129)
migrateDir
copy/moves the contents of the first path to the second. Overwriting is not implemented. In this case we can
- erase /root/.ssh before
migrateDir
or - 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...
#3 Updated by Giacomo Sanchietti over 8 years ago
- Assignee set to Giacomo Sanchietti
#4 Updated by Giacomo Sanchietti over 8 years ago
- Status changed from NEW to MODIFIED
- % Done changed from 0 to 100
The current .ssh directory is erased before the migration.
This shouldn't be a limitation because the migration will be done on clean machines.
#5 Updated by Davide Principi about 8 years ago
- Status changed from MODIFIED to CLOSED