Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    telnet connection

    Hi!
    I would like to make a telnet connection to one server.
    I can't do this at first because i necesary to connect to another server.

    I use the program putty and this is the command to connect to my first machine:

    Code:
    putty -pw mypass myuser@192.168.1.2
    When it connect i try this:
    Code:
    telnet 192.168.1.3
    anybody know any solution to do this automated?

    very thanks!

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Route through one to connect to a secondary server?

  • #3
    New Coder
    Join Date
    Jul 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes.
    So, when i do the telnet it's connect another IP (10.110.....) sorry for the confusion.

  • #4
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    I'm a bit rusty on this stuff, but by the sounds of it, your easiest option would be to create a VPN tunnel to the first machine, (if you can install suchlike on there), which will create a direct link, as far as your machine is concerned, to connect to the secondary server. I don't believe you can tunnel/reroute a terminal session directly via Putty or suchlike. I may be incorrect though. As I said, I am a tad rusty.

  • #5
    New Coder
    Join Date
    Jul 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts
    but it's possible to php? It's possible to lunch a putty.exe with php?
    I have a linux server with apache.


  •  

    Posting Permissions

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