Using your SSH Keys from 1Password in WinSCP


So my main workstation and laptop run Windows. We run 1Password to store our passwords and SSH keys and while with the 1Password SSH Agent I can use keys for OpenSSH in Windows and this works well, the same isn’t true for use with WinSCP which only uses Putty Agent (Pageant) to access keys and isn’t exposed to any other agents.

After some Google-Fu, I stumbled upon this project, which acts as a bridge for any pageant requests to hit OpenSSH, which will in turn hit the 1Password SSH Agent..

So to get this working, firstly ensure that your 1Password SSH Agent is running. Open 1Password, go to Settings > Developer and tick the Use SSH Agent box and it will prompt to disable the Windows OpenSSH Agent service, just say yes and it should then show a status of running.

Next, go and download the latest release, or use the following command to install automatically via winget

GitHub – ndbeals/winssh-pageant: Bridge to Windows OpenSSH agent from Pageant. This means the openssh agent has the keys and this proxies pageant requests to it. · GitHub

winget install winssh-pageant

Finally, launch WinSCP and under the Advanced Site Settings, you’ll need to tick Allow Agent Forwarding.

The next time you connect it should then prompt that winssh-paageant to use an SSH Key similar to the below.

If you have any issues, you might need to add the –no-pageant-pipe command line to the shortcut that lives in the Startup folder in the Windows start menu.


Leave a Reply

More Posts

How to Install a trusted certificate onto a FileZilla FTP server to enable FTPS (FTP over TLS)

I was recently helping troubleshoot an issue where as part of that I needed to get a 50GB SQL Database transferred from an interstate client onto our servers.  Both the client and us have a decent Internet Connection and we already had an FTP server in place but I was worried about the sensitive nature […]

Remotely enable Remote Desktop to connect to a remote PC

Occasionally you need to get something done on a remote computer (or a clients computer) but the computer doesn’t have an easy way for you to connect to it. Luckily, if you have admin rights to the remote computer, you can still connect without needing to turn on remote desktop before hand. To do that […]

Increase Limit of Data Expert for Tables, Views and Stored Procs in Crystal Reports

I’ve been recently doing some consulting for a school using a piece of software (a SIS called Synergetic) that uses Crystal Reports and switching to a new workstation has meant there were a few things I needed to get set up again. One of the frustrations I quickly found was that the Data Expert view […]