-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Describe the bug
ED25519 key pairs don't work to connect to ubuntu server
To Reproduce
from pssh.clients import SSHClient
import sys
import traceback
class SSHComm():
def __init__(self):
try:
self.client = SSHClient("192.168.0.201", user="ubuntu",
pkey="c:\\Users\\Admin\\.ssh\\piubuntu_ed25519", timeout=5,
allow_agent=False)
except:
print("Server connection", sys.exc_info())
Expected behavior
The key pair should authenticate to allow communications.
Actual behaviour
The code fails with AuthenticationError.
Additional information
System: parallel-ssh v2.5.4, Win 10 Pro v10.0.19401, Microsoft openssh v7.7.2.1, Python v3.8.6, Ubuntu-server 20.04
The ED25519 key pair was created using ssh-keygen -t ED25519.
The key pair also fails when pkey is deleted and allow_agent=True
However, the same ED25519 key pair is used successfully to make a connection to the server using cli and ssh agent.
The same result occurred with a second ED25519 key pair.
If an rsa key pair is used instead, the code above works as expected after pkey is changed to the name of the rsa key.