Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

(cross-posted this from SuperUser as the question seems more relevant to this audience)

I am attempting to SSH to a Linux (Fedora 14) machine and then open up vim to edit a file, however on my new Macbook Pro, the SSH session seems to "freeze" as soon as I open vim.

I can login fine to the Linux machine and run commands:

screenshot 1

However as soon as I run vim, the terminal blanks out, and does not respond to :q, ctrl+z, ctrl+c, ctrl+d, etc:

enter image description here

I'm using iTerm2, but the same problem occurs in Terminal.app. Also, attempting to transfer files with scp exhibits the same behavior, so it seems related to any type of ssh-connection to this machine.

Could this have something to do with tty vs pty, or some other terminal emulation setting in OS X?

I do not have the same display problem when opening vim on the remote linux machine using Windows or other OS's. Also, I can use vim fine when connected to other remote (Linux) machines.

share|improve this question
2  
Sounds like an MTU problem. See my answer there for explanations; in a nutshell, small packets are getting through but large packets are systematically dropped, so interactive programs mostly work (but not when they do a lot in one go) but file transfers mostly fail. To get help solving this, please describe precisely the network path between the client and the server (routers, link types, etc.). –  Gilles Jun 8 '11 at 20:18
add comment

1 Answer

I second @Gilles answer. But easier to diagnose, just set the MTU on your ethernet or wireless interface to something really small and see what happens. On OS X:

$ sudo ifconfig en0 mtu 1100  # (or en1 for wifi, unless on an Air)

Then test scp and see what happens. If it still stalls at 1100 you probably need to fix a really broken network device somewhere.

share|improve this answer
add comment

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.