4

How do I restart a shell session from within SSH when it looks something like this:

anton@ubuntu:~$ c: command not found
                                    anton@ubuntu:~$ lib
                                                       anton@ubuntu:~$ this is working, but its messed up
                         anton@ubuntu:~$

I can execute commands, but as I input them nothing shows on the console. But as soon as I press Enter the command executes and the output comes (without line-endings, as shown above).

exec bash
bash --login
clear

Nothing really works, restarting the SSH session however works. The temporary solution is to start a screen session and every time the interface freezes you simply do Ctrl+a->c to start a new session and close the old one.

  • Try stty sane – grawity Aug 29 '12 at 8:42
  • Worked some what, after doing it if you press the mouse something like: A2#A2 or N1#N1 comes up :) – Torxed Aug 29 '12 at 8:55
5

The command reset might help. See man reset for details, but simple reset should be just fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.