How do I push a file from a Linux box to a Windows Box?
Solution 1
I'm not to much skilled, but, instead of setting up a ssh server on windows, i suggest you to share a windows folder and then using samba, just copy the file to this shared folder. To a LAN a think this is a easier solution.
Solution 2
Check out Cygwin. It contains an implementation of an SSH Server for Windows (OpenSSH sshd server). It works with Windows 200, XP and 2003 (with a few caveats). Here's a good installation guide. Once it is installed and working, it works like a champ and gives you some level of standardization across servers.
Solution 3
I don't think any version of windows has built in SSH server. You can take a look at FileZilla for easily setting up a SFTP server.
Solution 4
You could also pull the file with PSCP.
Solution 5
- Start samba on the Linux box. This is if the 2 are in the same lan.
- Start a ftp server on the Linux box.
- Start sshd on server and copy with winscp from the linux box.
Related videos on Youtube
StephenNYC
Updated on September 17, 2022Comments
-
StephenNYC over 1 year
How do I push a file from a Linux box to a Windows Box? Which versions of Windows have a built-in SSH server that a Linux box can "scp" (secure copy/ssh) to.
I'm looking at freesshd right now. Any more ideas?
-
kdgregory over 15 years+1 - assuming you're on a local network, this is a reasonable approach; not so much if you're looking for a remote transfer
-
Brian Clapper over 15 years+1. If you use smbfs, you can mount the remote Windows share as a file system on Linux; then, you can just copy files back and forth.
-
Admin almost 12 yearsFileZilla SFTP is client-only. No SFTP server in FileZilla.