Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Passing telnet commands through SSH

by SiliconeClone (Initiate)
on Apr 03, 2014 at 01:55 UTC ( [id://1080875]=note: print w/replies, xml ) Need Help??


in reply to Re: Passing telnet commands through SSH
in thread Passing telnet commands through SSH

I finally got it working; for the most part lol

It is still hanging after creating the tunnel. I think this is because the SSH after the tunnel is open flips to the host machine.

ie I am in "Dev" environment, so I log into that via ssh. Send my tunnel command to "login" environment, at this point it hangs, but it did open the pid. I think it has something to do with the flipping, same reason I couldn't directly send the telnet through the SSH connection originally

To get around this I have forked the SSH sub, so that my telnet stuff will run regardless. Since it wouldn't wait for the sub routine what I ended up doing was adding a small sleep timer to give the tunnel time to establish

Thanks for your help!

  • Comment on Re^2: Passing telnet commands through SSH

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1080875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found