Replies: 5 comments 2 replies
-
If you mean "tunnel". Not directly, no function call of sshscript to setup a tunnel. But it could be used to establish the ssh connection (including nested connection) which then could be utilized for building a tunnel on top of it. Below is an example. Main script is sshscripttunnelexample.py (for it to work, ip addresses and password should be changed) |
Beta Was this translation helpful? Give feedback.
-
Thank you for this code. I mean this: https://www.howtogeek.com/devops/what-is-ssh-agent-forwarding-and-how-do-you-use-it/ |
Beta Was this translation helpful? Give feedback.
-
I see, It seems to be a kind of authentication while making connection. For current version(2.0.2) It is not supported. Since the paramiko seems to have this capability. I would study it and add it in version 2.0.3. Thanks for your suggestion. |
Beta Was this translation helpful? Give feedback.
-
thank you. |
Beta Was this translation helpful? Give feedback.
-
Instead of "ssh-copy-id", you can also copy the public key to remote host with the following script:
Then, the following script would work (suppose ssh-agent is running)
|
Beta Was this translation helpful? Give feedback.
-
Hi,
is it possible to use agent forwarding with sshscript?
Beta Was this translation helpful? Give feedback.
All reactions