WebFaction
Community site: login faq

On Web336, I've been experiencing (seemingly) random but frequent timeouts when trying to connect via SSH or FTP after being in SSH and FTP sessions. During the most recent occurrence (a few minutes ago), I had an SSH session going as my main user and an FTP session going as a new user I was setting up (verifying access that I was changing in the SSH session).

I did find: http://community.webfaction.com/questions/2439/ssh-sessions-keep-freezing ...but that refers to a timeout due to the session being idle, which I haven't been. I can get back in after 5-10 minutes, but I'm wondering if I'm doing something to cause this (so I can stop doing that).

asked 17 Jan '13, 08:14

vixenlights's gravatar image

vixenlights
1113
accept rate: 0%


Hello,

web336 has experienced no issues today, and I see a user on it, logged in for 3 (three) days now. It could be that something on your end is causing the connection drops you experience. Please do the following:

  • disable your antivirus/firewall software, just for this test
  • run a ping to the server, and to another site (such as google.com, etc.), before logging in via SSH/FTP, and leave it running. You can also run mtr or pathping to the server (WinMTR is available at winmtr.net)
  • log in via SSH/FTP and work as usual
  • when/if the connection drops again, then check the ping outputs (and the mtr/pingpath, if available) to determine whether the entire connection was interrupted in some way

Also, if you are using a wireless connection, then please try switching to a wired one to see whether there is difference.

Please report the outcome back here so we can advise further. Please note that your ping/mtr/pathping output might contain sensitive data, such as your IP, so you might wish to post a ticket on the problem.

Best Regards,

Valentin I.
WebFaction Support


WebFaction - Smarter web hosting
http://webfaction.com
http://twitter.com/webfaction - http://facebook.com/webfaction

permanent link

answered 17 Jan '13, 10:07

valentini's gravatar image

valentini
2614
accept rate: 28%

Hi,

Just wondering what became of this. I'm experiencing the same issue. Tomorrow I'll have to try the suggestions but I also get frequent frozen ssh sessions and not when I'm idle but I could be in the middle of editing a file and suddenly it freezes.

Mike

(14 Mar '13, 00:06) yatinla yatinla's gravatar image

It's strange, but I've seen this before on rare occasions as well, and solved it by explicitly sending heartbeat packets. Specifically, when I connect to a server, here is my SSH line:

ssh -C -o ServerAliveInterval=60 myuser@webNNN.webfaction.com

(I believe that in PuTTY there is also an option for setting the ServerAliveInterval to 60 seconds as well)

I'd recommend first trying this to ensure that it doesn't solve the problem, because it's worked for me in the rare cases referred to above.

(14 Mar '13, 00:52) ryans ♦♦ ryans's gravatar image

For others experiencing the disconnected-on-idle problem and perhaps even the OP's disconnected-despite-not-idle problem, here is how to get UNIX ssh and Windows putty to keep your interactive ssh alive:

https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/

(more detail on ServerAliveInterval option mentioned by ryans above)

http://www.nth-design.com/2010/05/10/using-keepalive-in-putty/

(in putty Configuration window, go to Connection and set "Seconds between keepalives" to something other than 0, such as 60 seconds)

permanent link

answered 14 Nov, 07:38

cpirazzi's gravatar image

cpirazzi
588
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×101
×60
×18

question asked: 17 Jan '13, 08:14

question was seen: 4,122 times

last updated: 14 Nov, 07:38

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM