Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Merge pull request #378 from lmagyar/pr-virtual-config-file" #404

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

lmagyar
Copy link
Contributor

@lmagyar lmagyar commented Oct 13, 2024

Finally I figured out how to do it the correct way: use server key stored in known_hosts file for server "identification".

Paramiko (Python SFTP client) allows to add custom missing host key policy, where we can search the known_hosts file for the server name config option of pftpd, and throw BadHostKeyException and retry without cached DNS-SD connectin info if they differ.

Update: See ZeroconfPolicy class https://github.com/lmagyar/prim-sync/blob/main/prim_sync/__main__.py#L1466

…ile"

This reverts commit 7ab059a, reversing
changes made to df86c45.

# Conflicts:
#	primitiveFTPd/src/org/primftpd/filesystem/VirtualConfigFile.java
#	primitiveFTPd/src/org/primftpd/filesystem/VirtualFileSystemView.java
#	primitiveFTPd/src/org/primftpd/filesystem/VirtualFtpConfigFile.java
#	primitiveFTPd/src/org/primftpd/filesystem/VirtualFtpFileSystemView.java
#	primitiveFTPd/src/org/primftpd/filesystem/VirtualSshConfigFile.java
#	primitiveFTPd/src/org/primftpd/filesystem/VirtualSshFileSystemView.java
@wolpi
Copy link
Owner

wolpi commented Oct 19, 2024

Ok, I'm fine with that, too.

@wolpi wolpi merged commit 2469c64 into wolpi:master Oct 19, 2024
1 check passed
@lmagyar lmagyar deleted the pr-remove-virtual-config-file branch October 19, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants