ParallelSSH / parallel-ssh

Asynchronous parallel SSH client library.
https://parallel-ssh.org
GNU Lesser General Public License v2.1
1.2k stars 148 forks source link

The SSHClient class in ssh/single.py is lacking the copy file functionality that's built into the SSHClient class found in native/single.py #385

Closed sjackson-adaptiv closed 9 months ago

sjackson-adaptiv commented 10 months ago

Is your feature request related to a problem? Please describe. I found that in order to authenticate with more recent hosts I had to start using:

from pssh.clients.ssh import ParallelSSHClient, SSHClient rather than from pssh.clients import ParallelSSHClient, SSHClient

This change addressed this issue: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

Now that I've made this change, I can once again authenticate with the hosts and interact, with the exception of being able to send/recv files using the sftp or scp functions. It seems that these are missing from ssh/single.py

Describe the solution you'd like It would be great if all the file transfer capabilities described in the documents were available in the ssh/single.py

Describe alternatives you've considered Another possibility is to update the native/single.py with support for newer ssh authentication methods.

Additional context Add any other context or screenshots about the feature request here.

pkittenis commented 9 months ago

That client does not support file copy functionality as of yet due to limitations of the underlying SSH library used. The two clients use different SSH libraries.