[GH-ISSUE #24] Use .ssh instead of .ssh-sync-data. Perhaps add a 'safe' mode #3

Closed
opened 2026-02-28 01:16:46 +03:00 by kerem · 1 comment
Owner

Originally created by @therealpaulgg on GitHub (Apr 26, 2023).
Original GitHub issue: https://github.com/therealpaulgg/ssh-sync/issues/24

Originally assigned to: @therealpaulgg on GitHub.

By 'safe' mode, if the user has keys currently in the directory, provide some kind of interface for the user to allow the user to prevent ssh-sync from overwriting keys.

This may apply to both 'upload' and 'download'

Originally created by @therealpaulgg on GitHub (Apr 26, 2023). Original GitHub issue: https://github.com/therealpaulgg/ssh-sync/issues/24 Originally assigned to: @therealpaulgg on GitHub. By 'safe' mode, if the user has keys currently in the directory, provide some kind of interface for the user to allow the user to prevent ssh-sync from overwriting keys. This may apply to both 'upload' and 'download'
kerem closed this issue 2026-02-28 01:16:47 +03:00
Author
Owner

@therealpaulgg commented on GitHub (Mar 20, 2024):

We should review .ssh-sync-data and make sure that we aren't explicitly deleting files. It would be bad to overwrite files without the user knowing...

Perhaps prompt the user and let them know if a key will be overwritten and the contents are different from what is stored on remote?

Is the config ordered the same each time it is generated, or does the order vary?

Let's use sha256sum to compare current files to new ones & warn

<!-- gh-comment-id:2010253108 --> @therealpaulgg commented on GitHub (Mar 20, 2024): We should review .ssh-sync-data and make sure that we aren't explicitly deleting files. It would be bad to overwrite files without the user knowing... Perhaps prompt the user and let them know if a key will be overwritten and the contents are different from what is stored on remote? Is the config ordered the same each time it is generated, or does the order vary? Let's use sha256sum to compare current files to new ones & warn
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ssh-sync#3
No description provided.