Skip to content

App hangs when navigating into restricted directories (e.g. .ssh) #25

Description

@Orinks

Description

When connected to a remote server, attempting to navigate into a restricted directory (e.g. .ssh) causes the app to hang indefinitely.

Steps to Reproduce

  1. Connect to a remote SSH/SFTP server
  2. Attempt to navigate into a hidden/restricted directory such as .ssh
  3. App hangs — no error is shown, no timeout occurs

Expected Behavior

App should handle permission errors or timeouts gracefully and display an appropriate error message instead of hanging.

Likely Cause

The SFTP directory listing call is blocking indefinitely on a permission-denied or stat error with no timeout. Could also be caused by symlinks inside the directory triggering a recursive stat loop.

Possible Fix

  • Add a timeout to directory listing operations
  • Catch PermissionError / SFTP error codes and surface a user-friendly message
  • Guard against symlink loops during directory traversal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions