Connecting to SFTP
To set up Magic Suite apps to connect to your SFTP system:
- From the Admin menu, click Connections.
- Click the Create button.
- Enter the name and optionally, a description.
- From the Type drop-down, select a Connection type of SFTP.
- In the URL, enter the IP address of your SFTP server
- Enter the required information in the User name and Password fields (only required when you are not using key-based authentication).
- Optionally, check the Read Only box to ensure that under no circumstances can a user write to, or delete from, the entire SFTP location.
- Optionally, in the Configuration field:
- Choose a root path (that is, a folder on the server that you want to be your root) by entering JSON configuration as below (note that the chosen path MUST have the / character at the start):
- Choose a private key to use for authentication (user name and password are then NOT used). You must include the Begin/End RSA Private Key text also:
- Click Save.
In Files, you will now see your SFTP Connection as a 'drive' that can be accessed as a file system allowing upload, download, delete, rename files as you would expect.
{
"RootPath" : "/path"
}
{
"Key" : "<key goes here>"
}
As an example:
{ "Key" : "-----BEGIN RSA PRIVATE KEY-----"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-----END RSA PRIVATE KEY-----\n"
Note that you can combined BOTH of these items, for example:
{
"RootPath" : "/path",
"Key" : "<key goes here>"
}