Find the answer to your Linux question:
Results 1 to 4 of 4
Hi! I create a tunnel in this way: ssh root@local_host to enter in my local host and from here ssh -L 10123:localhost:389 root@remote_host In this way when I open a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    2

    problem with tunneling


    Hi!
    I create a tunnel in this way:

    ssh root@local_host

    to enter in my local host and from here

    ssh -L 10123:localhost:389 root@remote_host

    In this way when I open a new ssh root@local_host session, with
    telnet localhost 10123
    I would be connect to remote host on 389 port. (this because I want to see ldap user in remote machine)

    This seems ok I think.
    the problem is that if I open an ldap browser (JXplorer ldap browser) and I try to connect to localhost 10123 connection is refused:

    javax.naming.ComunicationException:[server]:[porta][Root exception is java.net.ConnectException:Connection refused]

    The problem is link to tunnel that is not right?

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Quote Originally Posted by ojalÓ View Post
    In this way when I open a new ssh root@local_host session, with
    telnet localhost 10123
    Telnet is a clear-text protocol and ssh is a Encrypted Protocol.
    So, if you connect to ssh with telnet you have to send everything encrypted by yourself. I think thats one of your problems..

    Try to connect to SSH using ssh ?

    Tell me if that helps you abit.
    cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    2
    Nothing seems to change..

  4. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    What do you get when you connect using SSH?
    Since you should get a bigger error msg or something..

    Can you print down exacly what you get if you start the ssh deamon.
    And when you try to connect.

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •