If you’re working on Windows and you need to grab a file from a remote Linux server over SSH, make sure you use Cmder.
Once you have Cmder extracted, you can use the Linux command line SCP directly from Windows:
scp -i %CMDER_ROOT%\config\.ssh\id_ed25519 user@example.com:/remote/path/to/filename.tar.gz %USERPROFILE%\Downloads
You can use this shortcut if you’ve already setup your SSH agent.
scp user@example.com:/remote/path/to/filename.tar.gz %USERPROFILE%\Downloads
There is unexplained nuance in the setup and config of your SSH keys, in Cmder, that I haven’t gone into here – maybe later if I get time…
For later explanation, but relevant
https://gist.github.com/lukescammell/743bd91cf2da0ed1d2cd699a2fdc3698