Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have SSH set up using Cygwin on Windows XP SP3 to Dreamhost. It works fine except that when I edit a file with vi and use insert mode (eg press 'i' and type in some stuff). I then try and hit escape and ZZ to save/exit and it hangs instead. My edits aren't saved and I have to kill the session (locally) and kill the vi process on Dreamhost.

This is highly annoying. It's not reliable either. Sometimes it does work.

Also, this happens with PuTTY too.

share|improve this question
does it ever happen with the traditional :wq? – Andy Sep 9 '09 at 9:47
What is the value of the TERM environment variable? – Cristian Ciupitu Sep 9 '09 at 11:34
It seems to be 'cygwin'. – cletus Sep 9 '09 at 13:54
Try setting it to vt100 or even better vt220. – Cristian Ciupitu Sep 9 '09 at 15:39
I had this similar issue happen a couple of times with clients trying to use SSH with cygwin. Getting rid of cygwin solved the problem for me (I never bothered troubleshooting it past that) I've always had great luck with securecrt. – Jim B Feb 22 '10 at 21:47

I've had this sort of issue over SSH before, could it be related to software flow control? Try hitting Ctrl-Q (issuing an XON signal) to verify.

share|improve this answer
I'm aware of the ctrl-s/strl-q thing. I'm pretty sure that's not it. – cletus Sep 9 '09 at 13:54

Your Answer


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.