Skip to content

SSH proxy / socket #238

Answered by carlmontanari
afourmy asked this question in Q&A
May 20, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Hey @afourmy

If you are using system transport there is no socket (in scrapli at least) since we are just wrapping /bin/ssh -- that means you get all your normal openssh things "for free" -- including proxy jump/control persist/kex/cipher/etc. stuff. In this case you would just setup your normal proxy things in your ssh config file.

If you are using asyncssh you should also just use the ssh config file as asyncssh picks up many ssh config file things including proxy jump.

In the case of paramiko/ssh2, the short answer is "no" there is no way to pass a socket, but if you really want to you of course can (yay python flexibility!). You would need to simply make your own socket object and set…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@afourmy
Comment options

@carlmontanari
Comment options

@afourmy
Comment options

@carlmontanari
Comment options

@carlmontanari
Comment options

Answer selected by afourmy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants