Skip to content

SFTP repository unusable on Windows 11: "getsockname failed: Not a socket" #2259

Description

@tggege

SFTP repository unusable on Windows 11: "getsockname failed: Not a socket"

Environment:

  • plakar v1.1.4
  • Windows 11 (amd64)
  • SFTP integration installed via plakar pkg add sftp

Description

Opening an SFTP repository fails consistently with the following error:

failed to open the repository at sftp://user@myhost.example.com:/data/mind: failed to start ssh master: exit status 0xffffffff: getsockname failed: Not a socket

However, from the same PowerShell session, SSH and SFTP connect perfectly (key-based auth, no password prompt):

PS C:\Users\user> ssh user@myhost.example.com
# → connection OK

PS C:\Users\user> sftp user@myhost.example.com
Connected to myhost.example.com.
# → connection OK

Command used

plakar at "@srvplakar" backup fs://C:\Users\user

What I've tried, without success

  • Reinstalling the integration (plakar pkg rm sftp then plakar pkg add sftp)
  • Adding ControlMaster no / ControlPath none to ~/.ssh/config

The getsockname failed: Not a socket error seems related to SSH multiplexing (ControlMaster), which is known not to work on Windows. Is this expected behavior, or a limitation of the Windows support for SFTP?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions