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.

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.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

You may subscribe to this blog by email.