Can't type in SSH mode after a certain time
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:
have the same problem too, not on ssh, but in general it get's stuck
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)
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.
Same here.
Have you tried running ssh with ssh -v or ssh -vvv and seeing the output?
I have not tried, but lately I am not having this problem as far as I can tell.
Same issue here, any news on this?
This still happens every once in a while. I just can't type anything when it happens
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 not working sadly, also it happens to after 20-30 seconds of inactivity
The issue is not only on SSH, it's everywhere!
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.
Also getting this :(
Type <Enter>~., this is the escape sequence to terminate SSH.
@Arcovion that works to close the connection. But the problem is there yet.
come into this issue too. no ssh.
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.
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