We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084690b commit 34b618dCopy full SHA for 34b618d
dvc_ssh/client.py
@@ -124,3 +124,16 @@ async def kbdint_challenge_received(
124
p = await _getpass(f"{prompt_prefix}{prompt}")
125
response.append(p.rstrip())
126
return response
127
+
128
+ async def password_auth_requested(self) -> str:
129
+ assert self._conn is not None
130
+ options = self._conn._options
131
+ prompt = "Password: "
132
+ addr = "@".join(filter(None, (options.username, options.host)))
133
+ if addr:
134
+ prompt = f"{addr}'s password: "
135
136
+ # NOTE: we write an extra line otherwise the prompt will be written on
137
+ # the same line as any active tqdm progress bars
138
+ sys.stderr.write(os.linesep)
139
+ return await _getpass(prompt)
0 commit comments