Thursday, 5 April 2018

bash - How to prevent clearing of terminal output when I "exit" an SSH session?

This is the situation: I open a terminal in Ubuntu, and do ssh host-1, which works as expected. From host-1, I do ssh host-2, which again works fine and connects me to host-2. From host-2 I do, for example, echo "blah", which prints blah to the screen. Problem: If I do exit, the screen is cleared, and I am left with only the following:


Connection to host-2 closed.
myusername$


How can I prevent the clearing of output from the screen generated by commands run on host-2 (i.e. blah, etc.), after I exit back to host-1?


Some debugging I've already done: I've had a friend login to host-1 and host-2, exactly as above, and when he exit's from host-2, his screen is NOT cleared. So it must be something to do with my environment...right? Any ideas what it could be?


I've tried this using PuTTY in Windows XP, and from a terminal in Ubuntu - same behaviour regardless.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...