diff options
author | Red_M <1468433+Red-M@users.noreply.github.com> | 2023-02-15 02:04:54 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 02:04:54 +1000 |
commit | 4c768bd317fcb5ab6231bf21fc277b8b6ac36fa3 (patch) | |
tree | 27653bd5f4967e67f4f8493fe01234946dff7323 | |
parent | afb85a73c2f1da3a4bbd4a8340c04da12378834c (diff) | |
parent | 540808460656e137a463b2c167e634fd9cfebda0 (diff) | |
download | pexpect-4c768bd317fcb5ab6231bf21fc277b8b6ac36fa3.tar.gz |
Merge pull request #744 from loodvn/patch-1
Remove deprecated RSAAuthentication option (SSHv1), fixes #717
-rw-r--r-- | pexpect/pxssh.py | 5 |
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 |