...
- Set up a configuration file for your sftp connection. Call it "config" and put it in a folder called .eg.ssh under your user folder (eg. c:\Users\{your name}\.ssh).
Sample file:
Code Block language bash Host sftp2aws HostName somehost.server.transfer.ca-central-1.amazonaws.com IdentityFile C:\Users\{your name}\Documents\sftpsmmstranscandsd-key User sftpaws HostKeyAlgorithms ssh-rsa Compression yes
- Host - alias name for your connection
- HostName - the actual destination of the sftp server
- IdentityFile - your private key
- User - username
- Rest is likely optional
Create a script holding command(s) to actually send the file.
Sample script:Code Block put c:\yourfiletosend.txt exit
- Open regedit.
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU.
- Change the value of the UseWUServer attribute to 0.
- In a command window run the following:
...