Skip to content

Commit

Permalink
remove warning for ancient versions of paramiko
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 23, 2023
1 parent fc81829 commit bb2d868
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions xpra/net/ssh/paramiko_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,17 +657,8 @@ def auth_publickey() -> None:
except Exception:
log(f"auth_publickey() loading as {pkey_classname}", exc_info=True)
key_data = load_binary_file(keyfile_path)
if key_data and key_data.find(b"BEGIN OPENSSH PRIVATE KEY")>=0 and paramiko.__version__<"2.7":
log.warn(f"Warning: private key {keyfile_path!r}")
log.warn(" this file seems to be using OpenSSH's own format")
log.warn(" please convert it to something more standard (ie: PEM)")
log.warn(" so it can be used with the paramiko backend")
if WIN32:
log.warn(" or switch to the Putty Plink backend with:")
log.warn(" '--ssh=plink -ssh -agent'")
else:
log.warn(" or switch to the OpenSSH backend with:")
log.warn(" '--ssh=ssh'")
if key_data and key_data.find(b"BEGIN OPENSSH PRIVATE KEY")>=0:
log(" (OpenSSH private key file)")
if key:
log(f"auth_publickey using {keyfile_path!r} as {pkey_classname}: {keymd5(key)}")
try:
Expand Down

0 comments on commit bb2d868

Please sign in to comment.