I had this idea for long time and tried several ways to implement, with no luck. Tried to google many times and always finding not quite what is needed.
How to do:
$ ssh hostA
|--------------------------------|
| |
| |
| |
| |
| |
| |
| |
| root@hostA $ ssh hostB |
|--------------------------------|
|--------------------------------|
| |
| |
| |
| |
| |
| |
| root@hostB $ |
| root@hostA $ |
|--------------------------------|
The closest solution I came up with is with gnu screen status bar, displaying ssh from hostA to hostB
(the trick is to use $SSH_...
variables). Would be nice to have a visual stack of all connections (not just 2).
top
, how is it supposed to be displayed? The best solution is tmux or if you have a X-Window-System up and don't mind some Gnome-Dependencies, Terminator.root@hostB_via_hostA
,root@hostC_via_hostB_via_hostA
? In that case scratch my comment.