RClone SFTP on WIndows failed to use PuTTY Pageant

What is the problem you are having with rclone?

RClone shows an error when trying to use PuTTY Pageant for authentication.

This is the error I'm getting:

CRITICAL: Failed to create file system for "nas_md_sftp:/": couldn't read ssh agent signers: agent: client error: error sending message

If I exit Pageant I get a different error:

CRITICAL: Failed to create file system for "nas_md_sftp:/": couldn't connect to ssh-agent: SSH agent requested, but could not detect Pageant or Windows native SSH agent

This tells me that it tries to communicate with Pageant but fails.

Run the command 'rclone version' and share the full output of the command.

C:\Windows\System32>rclone version
rclone v1.69.3
- os/version: Microsoft Windows 11 Home 23H2 23H2 (64 bit)
- os/kernel: 10.0.22631.5335 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.3
- go/linking: static
- go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

SFTP on Synology NAS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

C:\Windows\System32>rclone lsd -vv nas_md_sftp:/

The rclone config contents with secrets removed.

[nas_md_sftp]
type = sftp
host = myhost_redacted.com
user = my_admin_user_redacted
port = 22021

A log from the command with the -vv flag

rclone lsd -vv nas_md_sftp:/
2025/05/26 21:15:18 DEBUG : rclone: Version "v1.69.3" starting with parameters ["C:\\ProgramData\\chocolatey\\lib\\rclone.portable\\tools\\rclone-v1.69.3-windows-amd64\\rclone.exe" "lsd" "-vv" "nas_md_sftp:/"]
2025/05/26 21:15:18 DEBUG : Creating backend with remote "nas_md_sftp:/"
2025/05/26 21:15:18 DEBUG : Using config file from "C:\\Users\\REDACTED\\AppData\\Roaming\\rclone\\rclone.conf"
2025/05/26 21:15:18 CRITICAL: Failed to create file system for "nas_md_sftp:/": couldn't connect to ssh-agent: SSH agent requested, but could not detect Pageant or Windows native SSH agent

Additional info

Using PuTTY to connect to Synology SSH with the same Pageant key works.

Update: I've installed a Totalcommander plugin for SFTP from here: Total Commander - Plugins. I tested logging in using password and through Pageant to the same server with the same configuration and everything worked in Totalcomander via this plugin.

I solved the problem: needed to run Pageant as Administrator (both cmd/RClone and Pageant need to be run as Administrator)! I hope this helps someone else in the future