From 56b711a75141144e0e90d0520e3a5502fe5b78bb Mon Sep 17 00:00:00 2001 From: Samuel FORESTIER Date: Sat, 17 Aug 2024 09:45:47 +0200 Subject: [PATCH] Updates code base according to pexpect v4.9 See varp/sublime-pexpect#1. --- README.md | 2 +- requirements-dev.txt | 2 +- sshubl/ssh_utils.py | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 639f0a4..4b6f6f9 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Open your command palette and type in `SSHubl` to select `Connect to server`. On ### Why can I connect to new hosts without accepting their fingerprint ? -> `pexpect` package is [known to always accept remotes' public key](https://github.com/pexpect/pexpect/blob/4.8.0/pexpect/pxssh.py#L411-L414), and it isn't configurable. +> `pexpect` package is [known to always accept remotes' public key](https://github.com/pexpect/pexpect/blob/4.9/pexpect/pxssh.py#L411-L414), and it isn't configurable. ### How is "SSHubl" pronounced ? diff --git a/requirements-dev.txt b/requirements-dev.txt index fc3a8e2..ba414ae 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -pexpect~=4.8.0 +pexpect~=4.9.0 pylint~=3.2.7 pylint-secure-coding-standard~=1.5.1 diff --git a/sshubl/ssh_utils.py b/sshubl/ssh_utils.py index 33de899..54fab5e 100644 --- a/sshubl/ssh_utils.py +++ b/sshubl/ssh_utils.py @@ -97,10 +97,6 @@ def ssh_connect( } ) - # pexpect v4.8 is currently packaged for Sublime Text so it still specifies old - # `RSAAuthentication` option - ssh.SSH_OPTS = "-o PubkeyAuthentication=no" - # if a password has been given, force password authentication if password is not None: ssh.force_password = True