A graphical client, like FileZilla, is out of the question? Or WinSCP, which can be used as a graphical client, but also through the command-line?
The Windows command line is usually not that great for file transfers with FTP.
Side note: sftpserver.com is a domain that gets forwarded to the website of titanftp.com, a company that provides (S)FTP servers on Azure, AWS and also on-premise.
Anyway, command line (S)FTP clients mostly require a text file that contains the file names to be transported. But also your login information.
For example:
you create a file, called: files_to_transport_with_sftp.txt
In that file you add a line that opens the connection, like so:
open sftp://user:
[email protected]/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx..."
You will need to fill in the content of your 'publickey.pkk' file where the 'xxxxxxxxxxx...' are shown in parameter '-hostkey'. You are likely needing to change the 'ssh-rsa 2048' part as well, with what was used to generate your key.
The next line in the files_to-transport_with_sftp.txt should be something similar as:
put C:\<path>\<to>\<your>\file.txt
On the destination FTP server your user account will have a default folder assigned. The line above will store the file into that default folder.
The next line in the files_to-transport_with_sftp.txt has to be:
close
You need to tell the FTP server to close the connection.
The final line in the files_to-transport_with_sftp.txt has to be:
exit
You'll need to exit the sftp software and give control back to the command-line interpreter you are about to use to start the FTP session.
In the command-line interpreter, you can now use the line:
sftp -b <path>\<to>\files_to-transport_with_sftp.txt
Why use the batch file method? You can generate such files pretty easily execute them and then remove them (or keep them around for auditing purposes, if that is something to you). The separate generation of such files makes FTP transfers easier/simpler/more secure. And much more fit for automatization. However, the above also should show you that any form of FTP transfers are severely outdated by now. And other methods of file transfers, like WebDAV, are much more secure and most of the time dramatically faster.