aptible db:create
command
aptible db:create "$DB_HANDLE" --type sftp
/home/%u
format). Files in the /home/%u
directory structure are located on a persistent volume that will be reliably persisted between any reload/restart/scale/maintenance activity of the SFTP instance. However, the initial aptible
user is a privileged user which can store files elsewhere in the file system, in areas which are on an ephemeral volume which will be lost during any reload/restart/scale/maintenance activity. Please only store SFTP files in the users’ home directory structure!aptible db:tunnel $DB_HANDLE
ssh -p PORT aptible@localhost.aptible.in
(where PORT is copied from the port provided in the previous step)add-sftp-user
utility to add additional users to the SFTP instance. Please note that additional users added with this utility must use ssh key authentication, and the public key is provided as an argument to the command.SSH_PUBLIC_KEY
would be the ssh public key for the user. To provide a fictional public key (truncated for readability) as an example: