Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

SSH client sends all keystrokes to the server and the server echoes them back.

Does a terminal emulation software like PuTTY show the keystroke after the echo is received from server or as soon as the client pushes a key? I just want to know if I am correct.

share|improve this question

2 Answers 2

I'm going to say the text is displayed after the server echos it back to the terminal for the following reason -

When you login to a server, you type your username and password. The text of your username will appear, but not the password. The same applies when entering passwords for other services, such as mysql.

So it seems it is the server(or app on server) that decides what is displayed.

You can also download the source code for openssh and have a look :)

share|improve this answer
    
+1 for a lucid response. –  user3463 Sep 20 '11 at 6:22
    
I think here is only relevant what you said about the other services, because I suppose the SSH password is asked for by the client. –  glglgl Sep 20 '11 at 8:07

It depends on the client. As per your specific question about PuTTY, it has a option to turn local echo on or off.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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