mirror of
https://github.com/therealpaulgg/ssh-sync.git
synced 2026-04-26 16:05:51 +03:00
[PR #65] [CLOSED] Add support for syncing known_hosts file #76
Labels
No labels
ai-generated
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ssh-sync#76
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?
📋 Pull Request Information
Original PR: https://github.com/therealpaulgg/ssh-sync/pull/65
Author: @Copilot
Created: 5/23/2025
Status: ❌ Closed
Base:
main← Head:copilot/fix-53📝 Commits (5)
2278ac0Initial plan for issue47686c9Implement known_hosts file syncingebffde7Add unit tests for known_hosts syncing functionality53eb2daUpdate README with GPG signing instructions and package repository setup752be9bRevert GPG signing instructions in README that were meant for a different PR📊 Changes
9 files changed (+238 additions, -11 deletions)
View changed files
📝
README.md(+6 -2)📝
pkg/actions/download.go(+7 -1)➕
pkg/actions/knownhosts_test.go(+45 -0)📝
pkg/actions/upload.go(+23 -0)📝
pkg/dto/main.go(+6 -5)📝
pkg/retrieval/data.go(+9 -0)📝
pkg/retrieval/data_test.go(+37 -3)📝
pkg/utils/write.go(+46 -0)➕
pkg/utils/write_test.go(+59 -0)📄 Description
This PR implements the ability to sync the known_hosts file across different machines, ensuring consistent SSH host verification across systems.
Changes Made
KnownHostsfield toDataDtostructure to store the known_hosts file dataWriteKnownHostsfunction with appropriate file permissions (0644)With these changes, users will automatically have their trusted SSH hosts synchronized across machines, eliminating the need to verify host fingerprints on each device separately.
The implementation follows the existing pattern of encrypting sensitive data with the master key for secure transmission.
Fixes #53.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.