Skip to content

Use paramiko.SSHClient in SFTPDownloader (enables SSH agent authentication) #368

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove allow_agent arguement (enabled by default by paramiko when usi…
…ng SSHClient)
  • Loading branch information
jstorrs committed Jun 26, 2023
commit 2b8ccfe2ae5f656db681ee56050c03160a890960
3 changes: 0 additions & 3 deletions pooch/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,13 @@ def __init__(
account="",
timeout=None,
progressbar=False,
allow_agent=False,
):
self.port = port
self.username = username
self.password = password
self.account = account
self.timeout = timeout
self.progressbar = progressbar
self.allow_agent = allow_agent
# Collect errors and raise only once so that both missing packages are
# captured. Otherwise, the user is only warned of one of them at a
# time (and we can't test properly when they are both missing).
Expand Down Expand Up @@ -464,7 +462,6 @@ def __call__(self, url, output_file, pooch):
port=self.port,
username=self.username,
password=self.password,
allow_agent=self.allow_agent,
)
sftp = client.open_sftp()
sftp.get_channel().settimeout = self.timeout
Expand Down