Adjust user sftp examples to rely on known hosts file rather than insecure policy to auto add missing host keys#523
Merged
jonasbardino merged 8 commits intonextfrom Apr 24, 2026
Conversation
Martin-Rehr
reviewed
Apr 21, 2026
Martin-Rehr
reviewed
Apr 21, 2026
Martin-Rehr
reviewed
Apr 21, 2026
Contributor
Author
Yes, good point. Added now. |
a7c9ccd to
5f187f9
Compare
Martin-Rehr
reviewed
Apr 24, 2026
Martin-Rehr
approved these changes
Apr 24, 2026
Contributor
Martin-Rehr
left a comment
There was a problem hiding this comment.
Approved when comment is addressed
…file rather than the insecure policy to auto add missing host keys. Update inline documentation to fit command line arguments.
…e insecure policy of auto adding missing host keys. A few fixes including a byte vs str issue to make it functional again on python3. Update inline usage help to fit comand line parsing and allow prompting for usernames.
…e insecure policy of auto adding missing host keys. A few other fixes to work under python3. Sync command line args with migsftp.py for consistency. Allow sharelinks of 10 chars in migsftp.py, too.
…ggested in review.
…migsftpX examples as suggested in review.
…efault and only the provided host key if one is explicitly given on command line.
5f187f9 to
00a1f52
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nothing critical as it's client side examples for programmatic SFTP access with paramiko, but addresses some warnings from repo code scans.
One can simply run the corresponding
sftp FQDNcommand first to inject any missing host keys. Preferably with theVerifyHostKeyDNS yesoption set to grab the trusted public key from DNSSEC.