← Nortiqo E-invoicing

Install guide · version 1.0

5. Prepare the server

Contents

The 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.

  1. 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.
  2. Without a transfer, nothing more: the customer’s own job takes the files from the outbox.
  3. With a transfer, as the runtime’s user on the X3 server, in Windows PowerShell:
    1. Check that sftp is there: Get-Command sftp prints OpenSSH’s sftp.exe, in C:\Windows\System32\OpenSSH\ on a Windows Server with the OpenSSH client.
    2. Make the key, with no passphrase, since the run is unattended: ssh-keygen -t ed25519 -f "$env:USERPROFILE\.ssh\<name>". Give the receiver the .pub file to authorize.
    3. 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 type bye. The run checks the host key strictly and is never asked, so a host never logged into this way fails every transfer.

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.

Email us

info@nortiqo.com