Skip to content
Merged
Changes from all commits
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
13 changes: 13 additions & 0 deletions dvc_ssh/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,16 @@ async def kbdint_challenge_received(
p = await _getpass(f"{prompt_prefix}{prompt}")
response.append(p.rstrip())
return response

async def password_auth_requested(self) -> str:
assert self._conn is not None
options = self._conn._options
prompt = "Password: "
addr = "@".join(filter(None, (options.username, options.host)))
if addr:
prompt = f"{addr}'s password: "

# NOTE: we write an extra line otherwise the prompt will be written on
# the same line as any active tqdm progress bars
sys.stderr.write(os.linesep)
return await _getpass(prompt)
Loading