Use SSH tunneling to connect terminal.
preetampatil3d opened this issue · comments
Tunneling won't work through EC2Box either
As KeyBox and EC2Box are two different applications and i am using EC2Box.
So, whether tunneling work through EC2Box or not? if not then why?
Because tunneling is a function of SSH. The user connects to EC2Box over HTTP, then EC2Box establishes the SSH connection.
We have implemented ssh tunneling using 'setPortForwardingL' method of jsch.
We want to close ssh tunneling if it is not active for long time, but we are unable to detect whether tunneling is active or not.
If you know any solution please let us know.
Thanks.
JSch client is used on the EC2Box server and users connect to EC2Box over HTTPS. ...so you would only be forwarding the ports from EC2Box to/from the target server. I don't see how users can take advantage of this, unless you are exposing the port to them that is forwarded on the EC2Box server.
.. but I really don't have any idea how to use Jsch to tell if a tunneled port is inactive.
In my case user know which remote port to access. So my requirement is fulfilled by setPortForwardingL function of Jsch.