in reply to Net::SSH::Perl pty problem with SSH2? SOLVED
Instead, try connecting from A to B and creating a tunnel from B:2222 to C:22. Then connect from A to B:2222:ssh -t -l usrB machineB ssh -t -l usrC machineC uname -a
A key difference here is that the main process has to start the first ssh process and then resume execution while the ssh process continues. I've never tried this from a script, so it is possible that it requires a fork. If this does work, you can reduce the added overhead by choosing weaker encryption for the tunnel's data and rely on your second connection for security.ssh -f -N -l usrB machineB -L 2222:machineC:22 ssh -t -p 2222 -l usrC machineB uname -a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SSH::Perl pty problem with SSH2?
by cmv (Chaplain) on Dec 23, 2008 at 15:38 UTC |