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.

2
  • Try stty sane
    – user1686
    Aug 29, 2012 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, 2012 at 8:55

1 Answer 1

5

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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