If your ssh connection times out when you ask for the content of a directory…

I have had no end of trouble connecting by ssh to my main Mac Pro. Whenever I would type “ls -1” in a directory containing many files, the connection would time out. This problem came and went away periodically. Owen pointed me to a sane explanation which has to do with evil firewalls. It looks like I solved my problems (for now) by typing “sudo ifconfig en0 mtu 576” in a server shell. It has nothing to do with ssh or Apple or MacOS.

Daniel Lemire, "If your ssh connection times out when you ask for the content of a directory…," in Daniel Lemire's blog, May 26, 2008.

Published by

Daniel Lemire

A computer science professor at the University of Quebec (TELUQ).

One thought on “If your ssh connection times out when you ask for the content of a directory…”

Leave a Reply

Your email address will not be published.

You may subscribe to this blog by email.