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.

When I try to connect from a remote computer that is not in the local network via ssh I get into trouble...

When I try to execute a TUI application it hangs and I cant do anything... I type ./menu and then nothing happens. However this program runs with no problem when connecting with ssh with a local IP (another computer in the local network).

But this 100% same program is installed also on another computer. When connecting via ssh to the other computer with a remote IP I get no problem!

SOLUTION
I increased the MTU value of my router

share|improve this question
    
What is TUI? Terminal User Interface? Is that the same as CLI (Command Line Interface)? –  Tshepang Jan 18 '11 at 12:03
    
text user interface.. the old kind of programs –  Parhs Jan 18 '11 at 12:35

1 Answer 1

up vote 3 down vote accepted

Seems like broken PMTUD. Check MTU an all involved computers and use ping -D to determine which maximum packet size can be transmitted over path to remote host.

share|improve this answer
    
the computer that works with no problem has blocked ICMP so ping doesnt work! THe other computer that has ping enabled has the problems... ping -D sends 64 byte.. i should try changing this ? –  Parhs Jan 18 '11 at 12:38
    
First ensure that just ping works. Then start trying ping -D with increasing packet size. Stop at the moment where answers do not come back to you, add 28 (IP+ICMP header size) to last working value to calculate actual path MTU. –  gelraen Jan 18 '11 at 12:44
    
-D adds timestamp... i am trying to increase packet size with -s but i dont get anything different... only the first time it says about fragmentation... –  Parhs Jan 18 '11 at 12:52

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.