Upload files to the cloud using SFTP
SFTP file transfers without using the agent
Our SFTP service is readily available for use, even without the agent. You will still need a valid certificate pack, specifically the private key. Many "interactive" functions have been disabled, but file uploads will work just fine.
sftp
curl
1
ardexa_user=$(openssl x509 -noout -subject -in /etc/ardexa/keys/client.crt \
2
| sed 's/.*O = \([^,]*\), CN = \(.*\)/\2.\1/')
3
sudo sftp -i /etc/ardexa/keys/client.key [email protected] <<END
4
put file.txt unique_dir_name/$(date -Is)/file.txt
5
END
Copied!
1
ardexa_user=$(openssl x509 -noout -subject -in /etc/ardexa/keys/client.crt \
2
| sed 's/.*O = \([^,]*\), CN = \(.*\)/\2.\1/')
3
curl -k -v --key /etc/ardexa/keys/client.key -T file.txt \
4
sftp://[email protected]/unique_dir_name/$(date -Is)/
Copied!
  • The username is $device_id.$workgroup_id. In the example this info is pulled from the certificate's Subject using openssl
  • Files cannot be overwritten. Any upload attempting to overwrite an existing file will be denied
  • Each device gets its own upload area
  • We strongly encourage the use of a unique root directory name
Last modified 7mo ago
Copy link