My Setup and the Problem
I use Linux on my main work laptop, where remote access is effortless: I can SSH with Kitty’s remote edit kitten or mount remotes via KDE Dolphin.
But at home, my desktop runs Windows 11 for gaming (thanks to stupid anti-cheat restrictions). I normally just game there very rare I do work from the Desktop, but sometimes I’m already at the desk and need to quickly edit stuff remote. Most time I just used scp. But remembering in the past I used WinSCP for remote file editing. Found out quicky it natively refuses to connect using my SSH key from the already running agent in 1password.
Solve it quickly
- Ensure 1password SSH Agent is running (Settins > Developer)
- Disable the Windows built ion OpenSSH Agent Service
(Services.msc > find OpenSS Auth… and set it to Disabled) - Get winssh-pageant
Install it and ensure it is run in Autostart adding the Param--no-pageant-pipe - In WinSCP under Authentication of a Session chosse “Allow Agent forwarding”
Thats it, your winscp should work as intended using the SSH Keys in your 1password.
Comments
With an account on the Fediverse or Mastodon, you can respond to this post. Since Mastodon is decentralized, you can use your existing account hosted by another Mastodon server or compatible platform if you don't have an account on this one. Known non-private replies are displayed below.