Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to connect through two or more getwayhost to the targethost and get the sshclient #299

Open
caccwin opened this issue Jun 28, 2023 · 0 comments

Comments

@caccwin
Copy link

caccwin commented Jun 28, 2023

self.client = SSHClient()
gate1_session = SSHSession(self.gate1host, jumpusername, password=jumppassword).open()
gate2_session = gate1_session.get_remote_session(self.gate2host, jumpusername, port=port, password=jumppassword)
Target_session = gate2_session.get_remote_session(self.hostname, self.username, password=password)
self.client = Target_session.ssh_client

I try like this but only get null object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant