Skip to content

SFTP connection will stall after a long idle #5073

Closed

Description

@cyberduck

689b6be created the issue

I've noticed recently (after upgrading to the latest version and also in 3.4.2 - I had been using an old old one 3.1 I think...), that if I leave an SFTP window open for a period of time (I would guess about an hour), and then I try to perform any action, Cyberduck will show the "spinner" at the bottom of the window, but nothing happens. Not even a time out.

I have the following in my ~/.ssh/config file - which used to be enough to stop this problem:

ServerAliveInterval 120
ServerAliveCountMax 10
TCPKeepAlive yes

Do newer version of CyberDuck ignore what is present in this file? I've tried version combinations of the commands in the file, and also have a file named ~/.ssh/ssh_config (which some sites suggest it should be), but to no avail.

Activity

  1. cyberduck commented on Jul 29, 2010

    @cyberduck
    ContributorAuthor

    @dkocher commented

    The timeout settings are not read from .ssh/config but can be set in the Connection Preferences. However, there must be an issue with stalled SSH connections as noted previously in #3941 and #4214.

  2. cyberduck commented on Jul 29, 2010

    @cyberduck
    ContributorAuthor

    @dkocher commented

    Replying to [5073 theallan]:

    Refer to OpenSSH Configuration Interoperability for a list of settings that are read from the OpenSSH configuration file.

  3. cyberduck commented on Jul 29, 2010

    @cyberduck
    ContributorAuthor

    689b6be commented

    I've got a time out setting of 30 seconds (as per default), but the connection "hangs" for a lot longer than that. The "spinner" in the window will simply keep going, as far as I can tell indefinitely (certainly for 10+ minutes).

    Regarding the other two bugs, it does sound very similar. Is there a way to stop the session from going stale, and thus working around these issues? It never used to be a problem, but is since I did an upgrade.

  4. cyberduck commented on Jul 29, 2010

    @cyberduck
    ContributorAuthor

    @dkocher commented

    In 356476b.

  5. locked as resolved and limited conversation to collaborators on Nov 26, 2021
  6. added theissue type on Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

sftpSFTP Protocol Implementation

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions