The installation process generates a public/private ECDSA SSH key pair for the tanadmin user. Use the User Administration menus to perform the following functions:
Regenerate the key pair.
Generate keys for the other TanOS special users.
Add authorized keys to support inbound user connections.
View the public key so you can copy and paste it into other Appliance configurations.
Tip:
You can use the ssh-copy-id command in OpenSSH to add an SSH public key from your local host to any TanOS user with the tanadmin role on the Tanium Appliance. For example:
CODE
ssh-copy-id -i public_key_file user@appliance
Before you begin
You must have an SSH client to sign in to the TanOS console and an SFTP client such as WinSCP to copy files to and from the Appliance.
You must have an SSH key generator such as ssh-keygen to generate keys for the user.
Generate keys
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 of the user account that you want to manage.
CODE
>>> User Administration -> TanOS -> tanadmin <<<
Username: tanadmin
Account Enabled: Yes
Authentication: SSH Key or Password
SSH Lockout: No (0)
Multifactor: Not configured
Notes:
* This user account cannot be deleted
A: Manage SSH Authorized Keys
P: Manage SSH Key Pair
L: Reset SSH Lockout
C: Change/Enable Password (Randomized)
N: Disable Password Access
M: 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 P to manage the SSH key pair.
CODE
>>> User Administration -> TanOS -> tanadmin -> Key Pair <<<
Account: tanadmin
No SSH keys found for user tanadmin. Please create key pair first
G: Generate ssh key pair
R: Return to previous menu RR: Return to top
------------------------------------------------------
Enter G to generate a public/private key pair.
CODE
>>> User Administration -> Manage -> User -> SSH <<<
Account: tanadmin
Action: Generate SSH Keys
No .ssh directory for user tanadmin found - creating and securing it
keygen process finished successful
Finished generating keys for tanuser
Press enter to continue
Add authorized keys
Use an SSH key generator such as ssh-keygen to generate a public/private key pair. Note:
Specify an ECDSA key (such as ssh-keygen -t ecdsa) or an RSA key with at least 2048 bits.
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 all of 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.
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
View public keys
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 P to go to the Key Pair menu to view the public key.
CODE
>>> User Administration -> TanOS -> tancopy -> Key Pair <<<
Account: tancopy
SSH Public Key for user tancopy:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZCvC+
nF93Nqmv2lrlUJoDTrwCnpJkcm5Er5ywNFNem5MJZZd0esToJTpY43gb8XppB5JP7SdHVJk2M3Nm0DP+xapjAL35Cs/
bdX48kwDc0R1m4Qc7/4aqQQkBcF/95Z3OrpD1EVW0bwF3KlsX9vEojQ3sO4PjNBQJxTepLI+iU1IQzu44OvUx4A7Jpk
ZSZBL+t1KdyNl75vZ8vCfcG4KqdHqwVds1XIplaW77LcN8+G4kYUthlpWVrSLvWtKdZztGG+Kasj0y/VSqhlP7AHorU
mDzuV4z4AOB7+UI8lcx8B5FPEverfNhPAXkemOrqnkd0oolLKeoEdiaakqANJHboI5gFJPJe1v1ZLDr47wXYqnGBccm
1Tp/MQyMvtf98HKesBk4qXOgvBICLs44/pLVqXou/3c+sI+uCj1aNDlTjmpvG1TBLAuuCUiu3SkUi3zcZxlvqRD/YgVq/
w9yGryG7pamAmBkYVXYqIx0JHfjxhO6er+pAZOpXPV8B4p3ie7lhzOJO+g7JRHwOEo+yLOyCU9yWwfvs6dsP7RqKS4EL
asTLFnaKFT4D+sxZnEIxJPpy/gO8tQdfm69fz6RXh8GkWt/2CyyQ4DWVXt5AXLt6YbMFk0nNVbnOVih1/g6yHsTcxQKP
zVDO/6fQ/tb33kbj5M5KhC1YI3pXxjMYZN1aQ
G: Generate ssh key pair
R: Return to previous menu RR: Return to top
------------------------------------------------------