Your current solution is not very elegant because others may be able to use the tunnels you are creating to get to serverB without login into serverA first.
In reply to Re^5: How to open nested SSH connection using perl
by salva
in thread How to open nested SSH connection using perl
by gjoshi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |