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

Adventures with setting up RDS RemoteApp and Web Access in Windows Server 2012 R2

So I was recently setting up a demo environment in Azure with two servers.  Our goal was to have Remote Web Access and then publish RemoteApps through that so we could give live demos.  The process to setup Remote Desktop Services is much easier in Server 2012 / 2012 R2 thanks to the Add Remove […]

Fix client machines not appearing in WSUS Console

Depending on your imaging method some clients may not show up on your WSUS console, and refuse to check for updates. Since starting my new job I’ve seen this occur on machines which have been imaged with a non-sysprepped image. I quickly whipped up a script to reset some settings and forcing the machine to […]

Add AWS CLI to Windows Terminal

I am a fan of Windows Terminal and some of the recent things Microsoft seem to be doing for SysAdmins. I like having all the tools I need in a single spot. Adding the AWS CLI is fairly straight forward but makes life a heap easier.  Start by installing Python from python.org if you don’t […]