Skip to content

Commit

Permalink
Revert "fix ssh issue on old distro when use key"
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng authored and squirrelsc committed Jan 12, 2024
1 parent 3e1ec50 commit b12f580
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lisa/util/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,6 @@ def try_connect(
# So try with paramiko firstly.
paramiko_client = paramiko.SSHClient()

# Put ssh-rsa in the first element of preferred public keys
# to resolve ssh issues on old distros.
paramiko.Transport.preferred_pubkeys = ( # type: ignore
"ssh-rsa",
"ssh-ed25519",
"ecdsa-sha2-nistp256",
"ecdsa-sha2-nistp384",
"ecdsa-sha2-nistp521",
"rsa-sha2-512",
"rsa-sha2-256",
"ssh-dss",
)

# Use base policy, do nothing on host key. The host key shouldn't be saved
# locally, or make any warning message. The IP addresses in cloud may be
# reused by different servers. If they are saved, there will be conflict
Expand Down

0 comments on commit b12f580

Please sign in to comment.