Skip to content

feat: allow use of private key when connecting to sftp#6

Merged
sluipmoord merged 2 commits intomasterfrom
feat/sftp-allow-use-of-private-key
Nov 29, 2024
Merged

feat: allow use of private key when connecting to sftp#6
sluipmoord merged 2 commits intomasterfrom
feat/sftp-allow-use-of-private-key

Conversation

@sluipmoord
Copy link
Copy Markdown
Contributor

This pull request introduces changes to the fileio package to enhance the SFTP connection functionality by adding support for private key authentication and includes corresponding tests.

Enhancements to SFTP connection:

  • fileio/sftp-store.go: Added support for private key authentication by introducing the PrivateKeyPath field and modifying the connect method to handle both private key and password authentication methods.

Testing the new functionality:

  • fileio/sftp-store_test.go: Added tests to verify the SFTP connection using both private key and password authentication methods. The tests ensure that the connection is successful and that the file listing is not empty.

@sluipmoord sluipmoord merged commit 698bb57 into master Nov 29, 2024
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