#clear guide for ftps

17 messages · Page 1 of 1 (latest)

vital cliff
#

Does anyone have a clear and updated guide for setting up FTPS via Powershell for the purpose of transferring large files (~100GB) between remote computers? I was going to try SFTP, but I read that it was slower than FTPS.

I found the link below, but it is old and a bit unclear in some areas. Thank you.

https://4sysops.com/archives/setting-up-a-secure-ftp-server-ftps-on-windows/

4sysops

In addition to the web server, Internet Information Services (IIS) contain an FTP server. It is integrated with the Windows user and authorization management and creates the necessary firewall rules during its installation. For secure transfer, it supports FTP over TLS/SSL (FTPS), but not the SSH-based SFTP.

kindred grail
#

Windows haven't really changed in this type of configuration. IIS is pretty much what it has always been. So it being "old" shouldn't matter. So from the unclear parts you kinda need to share what you are struggling with. Rebuilding this guide entirely in Powershell might also be possible but it requires you to do the effort of doing that unless you find one already made.

dense burrow
#

I would also validate the assumption that FTPS is faster the SFTP. SFTP is by far more common than FTPS and is available by default through the builtin SSH server on Windows these days

#

SFTP is also more firewall friendly and honestly more client friendly than FTPS

vital cliff
vital cliff
kindred grail
#

that and/or exploring the modules for IIS/Webadministration and finding the bits&bobs that does the same thing.

vital cliff
# kindred grail that and/or exploring the modules for IIS/Webadministration and finding the bits...
  1. Set up SFTP
    https://ipv6.rs/tutorial/Windows_11/OpenSSH_SFTP_server/

  2. Set up Powershell to be SFTP client
    https://community.spiceworks.com/t/how-to-set-up-sftp-using-powershell-tools/1013745

Does this look correct? I just want to ensure that I'm not missing anything as long as I follow these two links in order.

Sometimes, when I have to troubleshoot, it comes down simply to missed steps or following outdated guides that either omitted essential steps or assumed things from the reader.

kindred grail
#

Never done this configuration myself but it looks "fine" to me. Only done SFTP server on linux servers but posh-ssh is a good module afaik.

amber mortar
vital cliff
#

The link describes a Windows to Linux transfer, I think it would also work with Windows?

If yes, then it looks like I can simply use SCP to transfer files between remote computers. I'm curious how this compares with SFTP though regarding safety and speed of transfer.

#
$Session = New-PSSession -ComputerName "Server01" -Credential "Contoso\User01"
Copy-Item "D:\Folder001\test.log" -Destination "C:\Folder001_Copy\" -ToSession $Session
#

I'm curious how safe and fast this option is also.

dense burrow
#

The scp.exe is an SFTP client. It used to use the scp protocol but swapped over to using SFTP a few years back. The copy-item through a pssession is going to be very slow and I would recommend avoiding it where possible