You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're connecting as a client, which SSH server are you connecting to?
No response
If you're using paramiko as part of another tool, which tool/version?
No response
What are you trying to do with paramiko?
I'm trying to connect to a remote host that requires key authentication and only allows non-interactive commands. I've tried both an ssh-rsa key and a ssh-ed25519 key and in both cases I get an error "Authentication (publickey) failed". I have confirmed both keys work when directly using ssh to connect to the remote host however it fails when connecting using paramiko.
How are you trying to do it, and what's happening instead?
Sample code that gives the error. The expected outcome would be that it properly connects to the remote host.
Are you using paramiko as a client or server?
Client
What feature(s) aren't working right?
SSH, Keys/auth
What version(s) of paramiko are you using?
3.4.0
What version(s) of Python are you using?
3.11.6
What operating system and version are you using?
Windows 11
If you're connecting as a client, which SSH server are you connecting to?
No response
If you're using paramiko as part of another tool, which tool/version?
No response
What are you trying to do with paramiko?
I'm trying to connect to a remote host that requires key authentication and only allows non-interactive commands. I've tried both an ssh-rsa key and a ssh-ed25519 key and in both cases I get an error "Authentication (publickey) failed". I have confirmed both keys work when directly using ssh to connect to the remote host however it fails when connecting using paramiko.
How are you trying to do it, and what's happening instead?
Sample code that gives the error. The expected outcome would be that it properly connects to the remote host.
Error output when using ssh-rsa key:
Error output when using ssh-ed25519 key:
Anything else?
No response
The text was updated successfully, but these errors were encountered: