Skip to content

Commit

Permalink
Remove deprecated RSAAuthentication option (SSHv1), fixes #717
Browse files Browse the repository at this point in the history
  • Loading branch information
loodvn committed Feb 14, 2023
1 parent afb85a7 commit 5408084
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pexpect/pxssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,15 @@ def __init__ (self, timeout=30, maxread=2000, searchwindowsize=None,
# 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' ")
# Disabling X11 forwarding gets rid of the annoying SSH_ASKPASS from
# 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
Expand Down

0 comments on commit 5408084

Please sign in to comment.