Generating SFTP (SSH) Keys
SFTP supports authentication using cryptographic keys, as opposed to a username and password. SFTP keys, when added in Files.com, provide access via SFTP only, and do not confer any access via APIs, SDKs, or the web.
We recommend generating SFTP Keys using the Files.com web interface, but we have also compiled tutorials for how to do this directly on Windows, Mac, and Linux.
Web Interface
Both users and administrators can generate SSH Key pairs within the Files.com web interface.
Users can generate their own SSH keys by using the Generate key pair option within their own account profile.
Administrators can generate an SSH key to any Files.com user account by editing the user account and generating the SSH key in the user's Authentication option for SFTP/SSH keys.
You will only have one chance to copy or download the private key. Do not dismiss the private key information until you have copied or saved it to a secure location.
This method does not store a copy of the private key within Files.com. If you lose, delete, or fail to save the private key, then we cannot assist in recovering it.
Windows
This guide requires you to use the free PUTTYgen open-source application. PUTTYgen is a standalone application that does not require you to install it. You can download a copy of this utility from the downloads page at the maintainer's website.
Generating Compatible Keys With PUTTYgen
Open the PUTTYgen application by double clicking on it.
Choose ED25519 for the Type of key to generate.
Click the Generate button.
Move your mouse around until the progress bar is full.
You now will have a generated public and private key.
Save the private and public key files to a location that only you can access and that you will not lose.
Right click in the text field labeled Public key for pasting into OpenSSH authorized_keys file and choose Select All.
Right click again and choose Copy.
Finally you need to add the SFTP public key to your Files.com account. Navigate to Settings > Users and click the the username of the appropriate user. Click the SFTP Keys setting, and paste the contents of your clipboard into the Public Key text area. For the Title you can enter any piece of identifying information that you want (for example, "my laptop").
MacOS
MacOS includes the necessary software to generate a key pair. Simply click the magnifying glass in the top right hand of your screen, type in Terminal and hit enter to open the application.
Create the new ED25519 Key
When prompted specify the path you want to save the key files in.
If you wish to enter a passphrase for the private key you can enter it when prompted. A passphrase is not required for the private key though. If you do enter a passphrase you will have to type it in each time you use the private key.
Now that your key is generated you will want to copy it to your clipboard so that you can add it to your SFTP Keys.
Finally you need to add the SFTP public key to your Files.com account. Navigate to Settings > Users and click the the username of the appropriate user. Click the SFTP Keys setting, and paste the contents of your clipboard into the Public Key text area. For the Title you can enter any piece of identifying information that you want (for example, "my laptop").
Linux
Linux includes the necessary software to generate a key pair. Simply open your bash shell and type the following commands.
Create the new ED25519 Key.
When prompted specify the path you want to save the key files in.
If you wish to enter a passphrase for the private key you can enter it when prompted. A passphrase is not required for the private key though. If you do enter a passphrase you will have to type it in each time you use the private key.
Now that your key is generated you will want to copy it to your clipboard so that you can add it to your SFTP Keys.
Finally you need to add the SFTP public key to your Files.com account. Navigate to Settings > Users and click the the username of the appropriate user. Click the SFTP Keys setting, and paste the contents of your clipboard into the Public Key text area. For the Title you can enter any piece of identifying information that you want (for example, "my laptop").