cmder icon indicating copy to clipboard operation
cmder copied to clipboard

Can't type in SSH mode after a certain time

Open kfirba opened this issue 11 years ago • 18 comments

I noticed that whenever I'm going into SSH mode after a certain amount of time that I keep it logged in and not doing anything and then I come back and try to execute a command, the cursor is stuck. I can type as much as I want but it simply won't show anything.

I've also tried to paste some text, or type exit but it simply doesn't work. However, the cursor is still blinking. If I want to make it work, I have to exit cmder and open a new instance or a tab and re-connect.

As you can imagine, it gets pretty annoying that for every task I want to do I have to open a new tab/instance, especially when writing tests.

An image to describe how it looks after it gets stuck: capture

kfirba avatar Dec 12 '14 08:12 kfirba

have the same problem too, not on ssh, but in general it get's stuck

necenzurat avatar Dec 15 '14 15:12 necenzurat

I'm suffering from the exact same problem, It seems to start when Cmder has been left alone on SSH for an extended period of time (usually about the 20 minute mark in my case)

Joe1992w avatar Dec 17 '14 17:12 Joe1992w

I have also noticed this. Maybe see this: http://z9.io/2008/12/10/how-to-fix-ssh-timeout-problems/

I am still trying to figure out how to do this on windows.

mabasic avatar Dec 18 '14 12:12 mabasic

Same here.

RDeluxe avatar Jan 15 '15 22:01 RDeluxe

Have you tried running ssh with ssh -v or ssh -vvv and seeing the output?

MartiUK avatar Jan 21 '15 15:01 MartiUK

I have not tried, but lately I am not having this problem as far as I can tell.

mabasic avatar Jan 21 '15 15:01 mabasic

Same issue here, any news on this?

notflip avatar Mar 03 '15 20:03 notflip

This still happens every once in a while. I just can't type anything when it happens

RDeluxe avatar Mar 11 '15 09:03 RDeluxe

The following will tell your ssh to send NOOP packets to the server, keeping any routers in-between thinking that you are still using the connection and keeping it open.

All Hosts

Add the following lines to the %HOME%/.ssh/config file (create if it doesn’t exist)

Host *
    ServerAliveInterval 60

Make sure you indent the second line.

Per-Host

If you only want to enable keep alive for a single server, you can add that into the %HOME%/.ssh/config file with the following syntax:

Host *hostname.com
    ServerAliveInterval 60

MartiUK avatar Mar 13 '15 11:03 MartiUK

@MartiUK not working sadly, also it happens to after 20-30 seconds of inactivity

fteotini avatar Mar 27 '15 16:03 fteotini

The issue is not only on SSH, it's everywhere!

necenzurat avatar Mar 27 '15 16:03 necenzurat

I'm also experiencing this issue, using Windows 8.1. Only when connected via SSH. I also get the same issue in Git Bash too but I've tried the fix suggested above (in my user directory/.ssh) but it's still not working.

It's timing out while I'm trying to run composer install on a directory, I can't even tell whether it completes or not. Also happens if I leave it whilst awaiting a command.

If I kill the process it then kicks me out of the ssh and lets me reconnect without even re-opening cmder. I'm connecting via ssh to a virtual box on my PC if that makes any difference.

Rjs37 avatar Jun 11 '15 13:06 Rjs37

Also getting this :(

carlosflorencio avatar Jun 14 '15 16:06 carlosflorencio

Type <Enter>~., this is the escape sequence to terminate SSH.

Arcovion avatar Jun 14 '15 17:06 Arcovion

@Arcovion that works to close the connection. But the problem is there yet.

carlosflorencio avatar Jun 14 '15 17:06 carlosflorencio

come into this issue too. no ssh.

qeatzy avatar Jun 16 '16 11:06 qeatzy

Same problem for me, it happens using different consoles (cmd, bash, ssh, ...). Cursor is stucked, nothing else is happening. Must wait around 15 seconds to get unstuck.

bohus-rosko avatar Aug 10 '16 07:08 bohus-rosko

I didn't realize people were still having this issue. I found a fix a few months after I first commented.

I had to use the vagrant commands rather than homestead. I needed to re-create my box (using vagrant up) but since then I'm having no timeout issues using vagrant ssh.

This article helped me realize the issue: http://stagerightlabs.com/blog/running-homestead-2-on-windows

Rjs37 avatar Aug 10 '16 09:08 Rjs37