py-web-ssh 0.1.7__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/PKG-INFO +1 -1
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/pyproject.toml +1 -1
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/__init__.py +1 -1
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/app.py +6 -1
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/session.py +2 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/LICENSE +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/README.md +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/auth.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/client_session.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/files.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/history.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/models.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/runtime_config.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/ssh_client.py +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/static/app.js +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/static/index.html +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/static/logs.html +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/static/styles.css +0 -0
- {py_web_ssh-0.1.7 → py_web_ssh-0.1.8}/webssh/transfers.py +0 -0
|
@@ -187,7 +187,12 @@ def upload(
|
|
|
187
187
|
|
|
188
188
|
@app.post("/api/sessions/{session_id}/files/uploads")
|
|
189
189
|
async def create_upload_task(session_id: str, request: Request) -> JSONResponse:
|
|
190
|
-
_require_session(session_id)
|
|
190
|
+
session = _require_session(session_id)
|
|
191
|
+
if session.confirmed_host_key is None:
|
|
192
|
+
raise HTTPException(
|
|
193
|
+
status_code=409,
|
|
194
|
+
detail="SSH server host key has not been confirmed in the terminal yet.",
|
|
195
|
+
)
|
|
191
196
|
payload = await request.json()
|
|
192
197
|
remote_path = str(payload.get("remote_path", "")).strip()
|
|
193
198
|
if not remote_path:
|
|
@@ -272,6 +272,8 @@ class TerminalSession:
|
|
|
272
272
|
self._host_key_lock.wait(timeout=0.2)
|
|
273
273
|
else:
|
|
274
274
|
accepted = False
|
|
275
|
+
with self._host_key_lock:
|
|
276
|
+
self._awaiting_host_key_confirmation = False
|
|
275
277
|
|
|
276
278
|
if accepted:
|
|
277
279
|
self._append_output(b"Y\r\nContinuing SSH authentication...\r\n")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|