Up arrow produces
and down arrow produces
These look like ASCI escape codes. I don't get this problem when I am working outside of the SSH session. Also, when I
sudo su in the SSH session to a different user I do not have this issue. It seems I may have some problems with my Ubuntu user account?