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

Use SSH tunneling to connect terminal. #45

Open
preetampatil3d opened this issue Nov 15, 2016 · 6 comments
Open

Use SSH tunneling to connect terminal. #45

preetampatil3d opened this issue Nov 15, 2016 · 6 comments

Comments

@preetampatil3d
Copy link

Trying to connect terminals using SSH tunneling. Not getting proper documents.
As you mentioned on sshkeybox that its not possible. But is it possible on ec2box ?
image

waiting for reply,
Thanks.

@skavanagh
Copy link
Collaborator

skavanagh commented Nov 16, 2016

Tunneling won't work through EC2Box either

@preetampatil3d
Copy link
Author

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?

@skavanagh
Copy link
Collaborator

Because tunneling is a function of SSH. The user connects to EC2Box over HTTP, then EC2Box establishes the SSH connection.

@preetampatil3d
Copy link
Author

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.

@skavanagh
Copy link
Collaborator

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.

@preetampatil3d
Copy link
Author

preetampatil3d commented May 11, 2017

In my case user know which remote port to access. So my requirement is fulfilled by setPortForwardingL function of Jsch.

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

2 participants