Using SCP command to copy a file from Linux (remote) to Windows

Vulture

New Member
Joined
Dec 27, 2023
Messages
20
Reaction score
0
Credits
140
I'm having an issue trying to copy a file from a remote Linux Host to Windows using the scp command, when attempting to copy the file; the transfer stalls ?

Is there something specifically in Windows which is not setup or blocking something that seems relatively simple and easy ?
 


Sometimes it's permissions, sometimes it's virus protection.
If you're copying to a fat32 formatted drive, you can't copy any files larger than 4GB.
 
Sometimes it's permissions, sometimes it's virus protection.
If you're copying to a fat32 formatted drive, you can't copy any files larger than 4GB.
Permissions ? How can I diagnose what is the issue. The command as linked too runs but doesn't inform me that any file was moved ?
 
Can you create a text file with notepad and delete it in the directory you are trying to copy to? Is the file you are trying to copy larger than 4GB?
 
Is there something specifically in Windows which is not setup or blocking something that seems relatively simple and easy ?
Well.. yeah! This is a trick question, right?

I have cygwin set up on my old Win7 box, with openssh loaded (It's only for local use, so I don't care if it's current, thanks) and when I want to transfer files with scp I always just initiate the connection from the Windows side - never having to worry about running sshd on Windows (although I did that once, a really long time ago, and made it work). Don't have to worry about Windows firewall, Windows admin permissions etc, etc, etc.

On my Windows box, not only is everything old (Win7), but it's also 32 bit, so there'll be no updates to the Cygwin stuff either. I seem to recall having to jump through some hoops after all the modern (linux) openssh stuff updated security protocols (or something like that - it's been a while. I probably should have made good notes. For that matter, I probably -did-... somewhere.).
 
It’s possible that Windows Defender Firewall or a lack of proper SSH/SCP server setup on Windows is causing the stall. Ensure the Windows machine allows incoming SCP traffic and that you're using an SCP-compatible tool like WinSCP or enabling OpenSSH server on Windows if needed.
What must I check to ensure this ?
 
Well.. yeah! This is a trick question, right?

I have cygwin set up on my old Win7 box, with openssh loaded (It's only for local use, so I don't care if it's current, thanks) and when I want to transfer files with scp I always just initiate the connection from the Windows side - never having to worry about running sshd on Windows (although I did that once, a really long time ago, and made it work). Don't have to worry about Windows firewall, Windows admin permissions etc, etc, etc.

On my Windows box, not only is everything old (Win7), but it's also 32 bit, so there'll be no updates to the Cygwin stuff either. I seem to recall having to jump through some hoops after all the modern (linux) openssh stuff updated security protocols (or something like that - it's been a while. I probably should have made good notes. For that matter, I probably -did-... somewhere.).
If you could find the notes or recall I'd really would be grateful as I don't understand what is going wrong and why it is going wrong. There is obviously something on Windows which is blocking the transfer from a Linux (remote) to Windows.
 


Follow Linux.org

Staff online

Members online


Top