Setting Up Transfer Token Authorization
-
Choose or create the transfer user on the server.
The user should not have a password. If the system does not allow this, create a very large password.
The examples below use the transfer user
aspera_user_1. -
Restrict user permissions with aspshell.
By default, all system users can establish a FASP connection and are only restricted by file permissions. Restrict the user's file operations by assigning them to use aspshell, which permits only the following operations:
- Running Aspera uploads and downloads to or from this computer.
- Establishing connections in the application.
- Browsing, listing, creating, renaming, or deleting contents.
These instructions explain one way to change a user account or active directory user account so that it uses the aspshell; there may be other ways to do so on your system.
Run the following command to change the user login shell to aspshell:
# sudo usermod -s /bin/aspshell usernameConfirm that the user's shell updated by running the following command and looking for
/bin/aspshellat the end of the output:# grep username /etc/passwd username:x:501:501:...:/home/username:/bin/aspshellNote: If you use OpenSSH, sssd, and Active Directory for authentication: To make aspshell the default shell for all domain users, first set up a local account for server administration because this change affects all domain users. Then open /etc/sssd/sssd.conf and changedefault_shellfrom /bin/bash to /bin/aspshell. -
Set the Aspera Connect public SSH key as an authorized key for the transfer
user, and ensure that they own the file.
-
Create the .ssh directory in the user's home
folder.
# mkdir /home/aspera_user_1/.ssh/ -
Copy the Aspera public SSH key into .ssh and
rename it authorized_keys (or append the public key
to authorized_keys if the file already
exists).
# cp /opt/aspera/var/aspera_tokenauth_id_rsa.pub /home/aspera_user_1/.ssh/authorized_keys -
Ensure that .ssh and
.ssh/authorized_keys are owned by the user.
# chown -R aspera_user_1:aspera_user_1 /home/aspera_user_1/.ssh # chmod 600 /home/aspera_user_1/.ssh/authorized_keys # chmod 700 /home/aspera_user_1 # chmod 700 /home/aspera_user_1/.ssh
-
Create the .ssh directory in the user's home
folder.
-
Configure the user for transfer token authorization
To configure user authorization from the GUI, see Configuring Transfer Token Authorization in the GUI. To configure user authorization from aspera.conf, see Configuring Transfer Token Authorization from the Command Line.Note: Instead of setting authorization for each user individually, you can set it for a group, or set it globally for all users.