Reference: Transfer files to and from the Appliance
During various operations that you perform on the Appliance, you might need to upload or download files. Operations that produce logs or other output place files in the /outgoing directory, from which you can download it. When you must supply a file, you upload it to the /incoming directory. You perform these file transfers using an SFTP client, such as WinSCP in Windows or the sftp utility in macOS or Linux, and connecting as the tancopy user. You must have an SSH key configured for the tancopy user and use it for authentication.
Configure the SSH key for the tancopy user
-
Use an SSH key generator such as ssh-keygen to generate a public/private key pair. Note:
-
Specify an RSA key with 2048 bits (such as ssh-keygen -t rsa -b 2048).
-
Specify a passphrase that is easy to remember.
-
Save the private key to a location that you can access when you set up your SFTP client.
-
-
Copy the text in the public key file to the clipboard. If you use ssh-keygen, copy the contents of the .pub file that you created.
Important: In an SSH key exchange, the keys must match exactly, including line endings. -
Sign in to the TanOS console as a user with the tanadmin role.
-
Enter C-U (User Administration > TanOS User Management).
-
Enter the line number for the tancopy user to go to the user administration menu for this user.
CODE>>> User Administration -> TanOS -> tancopy <<< Username: tancopy Account Enabled: Yes Authentication: SSH Key Only SSH Lockout: No (0) Multifactor: Not configured Notes: * This user account cannot be deleted * This user account cannot have a password * This user account cannot use multifactor A: Manage SSH Authorized Keys P: Manage SSH Key Pair L: Reset SSH Lockout C: [DISABLED] Change Password N: [DISABLED] Disable Password Access M: [DISABLED] Multifactor Authentication E: Enable Account D: Disable Account X: [DISABLED] Delete User F: Edit known hosts file R: Return to previous menu RR: Return to top ------------------------------------------------------ -
Enter A (Authorized Keys).
-
Enter A and follow the prompts to add the contents of the public key generated in Step 1.
CODE>>> User Administration -> TanOS -> tancopy -> Authorized Keys -> Add <<< Account: tancopy Please paste the public key and press enter: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA1ClmgkMrbbxB7jND/Y4/Giupck35xAuGNKfZWqVLM5F0CNXuTScf6v2z MDxW5TO5tm/U8P9sqh19RDEzTn2RayXzsoZmXyB8abCCpHG4+03Zv05RHiX4i5QomAMBnbZejdA9/fGTxO1rPo1rdtTq Z+KCgzbEhHLWUD44+If5RtG+U4kgyzlYsyjgwhfho+BrRY6e7QYBsXVbuBQ9ROGV6PCTB80jXZVAKrAbsTQ1DVkpuBue mftv7vOn3b8MKzJ/IY/LLL1tIgpSGvgvjr2mOJJ+JoZF2XnPVUFmYiDSCkPAzhCyFHILHfOVAfws9n1G6p3fwILqNhvB oPeaCFaApQ== rsa-key-20200123 Validating input Adding key to authorized keys after validation Finished adding authorized keys for tancopy Press enter to continue
Connect using SFTP to transfer files
Use an SFTP client on your management computer, such as WinSCP in Windows or the sftp utility in macOS or Linux, to connect to the Appliance. The following steps demonstrate configuring the connection in WinSCP:
-
Specify tancopy for user name.
-
Click Advanced.
-
Under SSH, browse and select the private key that pairs with the public key uploaded to the Appliance.
-
Save the configuration and click Login to initiate the connection.
After you connect to the Appliance, upload files to the /incoming directory, and download files from the /outgoing directory.