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

Allow SFTP connection with SSH key #522

Merged
merged 4 commits into from
Jul 21, 2020
Merged

Allow SFTP connection with SSH key #522

merged 4 commits into from
Jul 21, 2020

Conversation

rostskadat
Copy link
Contributor

Allow SFTP connection with SSH key

Motivation

We do not use password to connect to SFTP server, instead we use SSH Key.
paramiko provides the possibility to set the key_filename in the connect kwargs argument.
However this is not used due to the fact that the ssh._connect() forcefully set the password argument.

Copy link
Collaborator

@mpenkov mpenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Can you please add a unit test?

@rostskadat rostskadat requested a review from mpenkov July 21, 2020 11:21
Copy link
Collaborator

@mpenkov mpenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you!

@mpenkov mpenkov merged commit b6cf769 into piskvorky:develop Jul 21, 2020
@mpenkov
Copy link
Collaborator

mpenkov commented Jul 21, 2020

Merged. Congratulations on your first contribution to smart_open! 🥇

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