summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLood <loodvn@gmail.com>2023-02-14 15:27:09 +0200
committerGitHub <noreply@github.com>2023-02-14 15:27:09 +0200
commit540808460656e137a463b2c167e634fd9cfebda0 (patch)
tree27653bd5f4967e67f4f8493fe01234946dff7323
parentafb85a73c2f1da3a4bbd4a8340c04da12378834c (diff)
downloadpexpect-540808460656e137a463b2c167e634fd9cfebda0.tar.gz
Remove deprecated RSAAuthentication option (SSHv1), fixes #717
-rw-r--r--pexpect/pxssh.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py
index 3d53bd9..bfefc7a 100644
--- a/pexpect/pxssh.py
+++ b/pexpect/pxssh.py
@@ -143,8 +143,7 @@ class pxssh (spawn):
# used to set shell command-line prompt to UNIQUE_PROMPT.
self.PROMPT_SET_SH = r"PS1='[PEXPECT]\$ '"
self.PROMPT_SET_CSH = r"set prompt='[PEXPECT]\$ '"
- self.SSH_OPTS = ("-o'RSAAuthentication=no'"
- + " -o 'PubkeyAuthentication=no'")
+ self.SSH_OPTS = (" -o 'PubkeyAuthentication=no'")
# Disabling host key checking, makes you vulnerable to MITM attacks.
# + " -o 'StrictHostKeyChecking=no'"
# + " -o 'UserKnownHostsFile /dev/null' ")
@@ -152,7 +151,7 @@ class pxssh (spawn):
# displaying a GUI password dialog. I have not figured out how to
# disable only SSH_ASKPASS without also disabling X11 forwarding.
# Unsetting SSH_ASKPASS on the remote side doesn't disable it! Annoying!
- #self.SSH_OPTS = "-x -o'RSAAuthentication=no' -o 'PubkeyAuthentication=no'"
+ #self.SSH_OPTS = "-x -o 'PubkeyAuthentication=no'"
self.force_password = False
self.debug_command_string = debug_command_string