SSH connectivity with paramiko 🐍 #51439
Answered
by
strideynet
lechugaletal
asked this question in
Q&A
-
Is teleport compatible with SSH connections stablished with python's lib paramiko? I'm currently trying to stablish an SSH connection to a remote host with the following implementation but it does not seem to work at all:
But i'm facing an authentication error: DEBUG:paramiko.transport:=== End of kex handshake ===
DEBUG:paramiko.transport:Resetting outbound seqno after NEWKEYS due to strict mode
DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo <built-in function openssl_sha256>
DEBUG:paramiko.transport:Switch to new keys ...
DEBUG:paramiko.transport:Resetting inbound seqno after NEWKEYS due to strict mode
DEBUG:paramiko.transport:Adding ssh-rsa host key for [_remote_node]: b'996550f825bd7b76b387ff61a575f9d7'
DEBUG:paramiko.transport:Trying SSH key b'8a3b1e6ddf0e717ef34e3ba27a5aa83c'
DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss', '[email protected]': b'0'}
DEBUG:paramiko.transport:userauth is OK
DEBUG:paramiko.transport:Finalizing pubkey algorithm for key of type 'ssh-rsa'
DEBUG:paramiko.transport:Our pubkey algorithm list: ['rsa-sha2-512', 'rsa-sha2-256', 'ssh-rsa']
DEBUG:paramiko.transport:Server-side algorithm list: ['ssh-ed25519', '[email protected]', '[email protected]', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521', 'rsa-sha2-256', 'rsa-sha2-512', 'ssh-rsa', 'ssh-dss']
DEBUG:paramiko.transport:Agreed upon 'rsa-sha2-512' pubkey algorithm
INFO:paramiko.transport:Authentication (publickey) failed. Any clue on how to configure the connection to propperly work? |
Beta Was this translation helpful? Give feedback.
Answered by
strideynet
Jan 23, 2025
Replies: 1 comment 2 replies
-
Looking at your configuration, has this been correctly set up to use the SSH certificate? It looks like you are passing the private key but not the certificate. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lechugaletal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking at your configuration, has this been correctly set up to use the SSH certificate? It looks like you are passing the private key but not the certificate.