on-internet
← Community

Python Paramiko get_transport() and open_session() functions explanation

Stack Overflow ·

If I use this code (of course after connecting to the ssh server): client = client.get_transport().open_session() I literally can't find proper information on get_transport() (not even in the documentation), but I expect it to return a socket (tcp) object, if that's true, what does open_session() do? The documentation says the following: Request a new channel to the server, of type "session". This is just an alias for calling open_channel with an argument of "session". This is not quite clear to me, what is meant with "a new channel to the server of type session" and can someone explain to me

Comments

Sign in or sign up to comment and upvote.

No comments yet.