The Computer Oracle

Best way to transfer files from Windows to Windows via Internet

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Best Way To Transfer Files From Windows To Windows Via Internet
01:09 Accepted Answer Score 8
02:14 Answer 2 Score 2
02:41 Answer 3 Score 2
03:11 Answer 4 Score 0
03:26 Thank you

--

Full question
https://superuser.com/questions/966163/b...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #ssh #ftp #filetransfer #scp

#avk47



ACCEPTED ANSWER

Score 8


Since version 1803, Windows 10 has OpenSSH for Windows built-in.

For older versions of Windows, you can install OpenSSH manually.

I have prepared a guide for setting up SSH/SFTP server on Windows using this Microsoft build of OpenSSH.


For FTP, you ca use the FTP server built into the IIS (web server). It's not running by default. Note that you can use the IIS to setup an FTP server even without setting up a website.

When setting up the FTP server in the IIS, make sure you force TLS/SSL encryption (FTPS) and disallow anonymous authentication, for security.

See (my) guide on Installing Secure FTP Server on Windows using IIS.

Once you have the FTP(S) server set up, you can use any FTP client. Windows Explorer itself does support FTP(S). Though note that the Windows built-in command-line ftp.exe client is useless as it does not support the TLS/SSL or a passive mode (so it can hardly connect though firewalls and NATs).




ANSWER 2

Score 2


You can use Powershell remoting (since Powershell 5)
There are plenty of examples at https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/copy-item
which you can also get by running Help Copy-Item -Examples in Powershell.

This is a simple example of copying a local file to a remote computer.

Example 5: Copy a file to a remote computer

$Session = New-PSSession -ComputerName "Server01" -Credential "Contoso\PattiFul"
Copy-Item "C:\MyRemoteData\test.log" -Destination "D:\MyLocalData\" -FromSession $Session



ANSWER 3

Score 2


To day it's possible to use a native scp at Windows 10, you can install it by configuration menu, or by PowerShell, for the last option, here is the code:

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
Set-Service -Name ssh-agent -StartupType 'Automatic'
Start-Service ssh-agent

For incoming conections we need the OpenSSH Server, and for outgoing, the client.

Remember, if you have an antivirus software with firewall, create outgoing and incoming rules for ssh at port 22




ANSWER 4

Score 0


If you are limited from installing tools, folder sharing in source and using "pushd " and copy in the cmd prompt of destination machine worked for me. It can be scripted also I guess.