Install guide · version 1.0
5. Prepare the server
ContentsThe run writes each file into two directories on the X3 server and, with a transfer, sends it with
the server’s own sftp client, both as the X3 runtime’s Windows user.
- The directories. Make two directories the X3 runtime may write, inside the folder’s sandbox: the outbox, which the transfer empties, and the sent files directory beside it, which keeps each file as it was sent. Not yet tested: a space in the sent files directory’s path or the key’s, so choose those without one.
- Without a transfer, nothing more: the customer’s own job takes the files from the outbox.
- With a transfer, as the runtime’s user on the X3 server, in Windows PowerShell:
- Check that
sftpis there:Get-Command sftpprints OpenSSH’ssftp.exe, inC:\Windows\System32\OpenSSH\on a Windows Server with the OpenSSH client. - Make the key, with no passphrase, since the run is unattended:
ssh-keygen -t ed25519 -f "$env:USERPROFILE\.ssh\<name>". Give the receiver the.pubfile to authorize. - Log in once by hand,
sftp -i "$env:USERPROFILE\.ssh\<name>" -P <port> <user>@<host>, answer yes to keep the receiver’s host key, then typebye. The run checks the host key strictly and is never asked, so a host never logged into this way fails every transfer.
- Check that
Check: with a transfer, the login of point 3 reaches sftp> with no password asked.
Stuck? Ask your Sage partner, or write to info@nortiqo.com.