jw-pkg/src/python/jw/pkg/lib/ec/ssh
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 4b55b460ea
lib.ec.ssh.Paramiko: Pass port and password
__client() connects using only the URI's hostname and username. The
URI's port is ignored, so ssh://host:2222/... ends up connecting to
port 22, and a password carried in the URI is never passed to
paramiko, so URI-based password authentication cannot work. The Exec
and AsyncSSH clients both honor the port and the password.

Pass the port and the password to connect(). The port argument is
omitted entirely when the URI carries no port, because
getaddrinfo() would interpret a None port as service port 0; without
the argument, paramiko falls back to its default of 22.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-09-05 19:00:58 +02:00
..
AsyncSSH.py projects-dir.mk: Add diff-projects target 2026-08-11 16:45:14 +02:00
Exec.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Makefile lib.ec.SSHClientInternal|SSHClientCmd: Own .py 2026-03-20 13:35:50 +01:00
Paramiko.py lib.ec.ssh.Paramiko: Pass port and password 2026-09-05 19:00:58 +02:00
util.py App, lib, cmds: Remove unreachable code 2026-08-09 11:34:27 +00:00