To save input and output on XUbuntu:
Terminal
in the top menu bar and look for save contents
in the dropdownI find this saves the input and output, going all the way back to when I opened the terminal. This is not ipython specific, and would work with ssh sessions or other tasks run from the terminal window.